c# - Why is there no built-in type for DateTime? -
this question has answer here:
most common datatypes have built in type: int32
has int
, boolean
has bool
, string
has string
, etc. why there no built-in type datetime?
first thought it's because datetime
has properties , public functions, int
. can shed light on this? what's criteria type have built-in equivalent?
the clr defines basic building blocks: minimal data types necessary define others. types given alias.
since datetime
collection of longs , integers, packed in struct, there no need create new data type in clr it. can build data types defined in clr. no need aliasing it.
Comments
Post a Comment