' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System

Namespace E
    Public Class Program
        Public Delegate Function FX(x As Double) As Double
        Public Shared Sub Main(args As String())
            Dim f As FX = Function(x As Double) x*x
            Console.WriteLine(f(10))
        End Sub
    End Class
End Namespace
