They are all just "types", from the perspective of the CRL.
Structs, arrays, enums, and delegates are all first class "types" that
inherit from something. It is only the syntax of the language that hides
that fact. For instance, declaring a delegate as "public void
MyDelegate();" still creates a class in the CRL.
The only weird thing are interfaces, but they are still considered types
even though they are not classes and do not inherit from another class.
"ERE" <ea*******@ma.ultranet.com> wrote in message
news:YH*****************@newsread1.mlpsca01.us.to. verio.net...
Hi,
I have a question about nomenclature.
When you declare a class, or any of the user-defined types, you are
declaring a TYPE, that can then be used throughout your program. E.g.,
the following declares a new type called MyClass.
class MyClass
{
...
}
So class, struct, array, enum, delegate, and interface are not actual
types -- they are "metatypes" for creating new types. Is there a formal
term for these metatypes? or is that it -- metatypes?
Thanks,
Dan