types - Why can you make Primitive Datatypes in C#? -
how come in c# can create primitive datatypes?
what kind of practical uses functionality have?
i assume mean struct
. there various uses:
point
or complexvalue
doesn't warrant overhead of object per instance : (preferably-immutable) set of values composite mapping fields memory explicit layout interop purposes avoiding gc issues massive datasets it is, however, very rare declare struct
in c#; i.e. vanishingly rare. nobody making it, , if don't them : don't create any.
c# types
No comments:
Post a Comment