' 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
Imports System.Reflection

<assembly: AssemblyKeyFile("Delphi.snk")> 
Namespace Delphi
    Public Class Test
        Public Function Dup(s As String, n As Integer) As String
            Dim res As String = ""
            Dim i As Integer
            For i = 1 To n
                res = res & s
            Next
            Dup = res
        End Function
    End Class 
End Namespace
