(enum) .
(struct).
C#. , C# :
- (value), .
(reference).
(pointer).
void.
, . "", . , , , , . , unsafe. void, - .
: , , , . , . C# - . , . C# Net Framework, System.
( C#)
. . C# :
. , .
(). . , , , .
. , , .
. , System.DateTime, System.BitConverter, System.Convert Parse .
, .
int num = 2147483647;
long bigNum = num;
.
Derived d = new Derived();
Base b = d;
( ) , . , , .
|
|
double x = 1234.7;
int a;
a = (int)x;
, :
Giraffe g = new Giraffe();
Animal a = g;
Giraffe g2 = (Giraffe) a;
, , . . , , , . , . , .
, .
field , . .
, . .
, , private protected. , , , . , , , .
, , . , , .
, .
: objectname.fieldname.
, .
.
public, private, protected, internal protected internal. .
static.
readonly. ( , ) .