Thursday, June 21, 2007

Converting From Boo To VB.NET

import --> Imports

public class x(y.z): --> Public Class x
Inherits y.z ... End Class

public x = '' --> Public x = ""

public def x(): --> Public Function () As String ...End Function

return x --> Return x

public def x(y,z): --> Public Function x(ByVal x As String, ByVal y As String):

public x as string --> Public x As String

public def x() as string: --> Public Function x() As String

x = X() --> Dim x as New X()

x.y = y --> x.y = y

x.y.z = 'abc' --> x.y.z = "abc"

try: --> Try ... End Try

except --> Catch

No comments: