Hey whats eqaul to dim in C#?
Printable View
Hey whats eqaul to dim in C#?
please help!
I cant believe that no one has answered this simple question yet :D .
Anyway:
Dim sName as String is the same as
string sName; in c#
cheers:)
for class or whatever instantiation make
type name = new type(args);
VB Code:
<object> <name> = new <object>(); string sMyString = new string(); 'creates empty string called sMyString int iMyInt = new int(); 'creates empty integer called sMyInt string sMyString = new string('#', 8); 'creates string "########" string sMyString = "blah blah blah" 'creates string "blah blah blah"