C # задаване на дата и време

Примерен код

0
0

N

Since DateTime is a struct, not a class, you get a DateTime object, not a reference
, when you declare a field or variable of that type.

And, in the same way as an int cannot be null, so this DateTime object can never 
be null, because it's not a reference.

Adding the question mark turns it into a nullable type, which means that either 
it is a DateTime object, or it is null.

DateTime? is syntactic sugar for Nullable<DateTime>, where Nullable 
is itself a struct

Подобни страници

Подобни страници с примери

На други езици

Тази страница на други езици

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Íslensk
..................................................................................................................