- C# is type-safe language. Variable are declared as being of a particular type, and each variable is constrained to hold only values of its declared type.
- variable can hold either value types or reference types, or they can be pointers.
- A variable of value types directly contains only an object with the value.
- A variable of reference type directly contains a reference to an object. Another variable may contain a reference to the same object.
- It is possible in C# to define your own value types by declaring enumeration or Structs.
C# Pre-defined Value Types

Next
No comments:
Post a Comment