Wednesday 30 May 2007

equal types in vb.net and c#

Even though c# and vb.net uses the same libraries, there is some differences in what name identify the classes, below I will make a list.








vb.netc#
Booleanbool
DateSystem.DateTime
Stringstring
int32int


And keywords:







vb.netc#
Sharedstatic
Friendinternal
ReadOnly*const*



*)
const:

- Can't be static.
- Value is evaluated at compile time.
- Initiailized at declaration only.

ReadOnly:

- Can be either instance-level or static.
- Value is evaluated at run time.
- Can be initialized in declaration or by code in the constructor.

No comments: