Thursday, 15 April 2010

types - Why can you make Primitive Datatypes in C#? -



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:

representing simple info such 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