D
Dave Sexton
Hi Dustin,
Thanks for the input, but I don't think this is simply a debate on semantics.
But just to address that concern, I do think that all value-types can be
considered structs. The term "structure" was not coined in C#.
"Data types are separated into value types and reference types. Value types
are either stack-allocated or allocated inline in a structure"
"ValueType Class"
[link in related post]
System.Enum is also documented as a "structure" (see link in related post).
The CLR only "seeing" classes is irrelevant. The fact of the matter is, any
object that derives from ValueType can be considered a structure. Any object
that doesn't, can't.
Thanks for the input, but I don't think this is simply a debate on semantics.
But just to address that concern, I do think that all value-types can be
considered structs. The term "structure" was not coined in C#.
"Data types are separated into value types and reference types. Value types
are either stack-allocated or allocated inline in a structure"
"ValueType Class"
[link in related post]
System.Enum is also documented as a "structure" (see link in related post).
The CLR only "seeing" classes is irrelevant. The fact of the matter is, any
object that derives from ValueType can be considered a structure. Any object
that doesn't, can't.