vb.net | c# |
---|---|
Boolean | bool |
Date | System.DateTime |
String | string |
int32 | int |
And keywords:
vb.net | c# |
---|---|
Shared | static |
Friend | internal |
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:
Post a Comment