According to what I can find I believe DateTime
is a primitive type but when I check my DateTime
variable the property IsPrimitive
is false.
7.3 Primitive Types (archive.org mirror)
In the article above you'll see that they say DateTime
is primitive. So is there anything I'm doing wrong or have I read the article wrong?
typeof(DateTime).IsPrimitive
returnsfalse
as well.DateTime
is simply a value type.Date
in C#, and there's no telling how many people have spent at least a brief moment searching for one.