Steve,

Another related question, if I may.  How has the metadata schema been
changed to accomodate generics?

There are three new metadata tables; GenericParam, GenericParamCostraint and MethodSpec. The easiest way to see what they contain is to run Metainfo /schema or Ildasm /metadata=schema on a v2.0 executable that uses generics.


To see how generics affect signatures, see the CorElementType and CorCallingConvention enums in CorHdr.h in the v2.0 SDK.

This also affects the HasCustomAttribute coded token type, since generic params can have attributes. There's also a new coded token TypeOrMethodDef used in the GenericParam table.


Besides generics, have there been any other changes in the metadata schema?

The only other change I've found (which isn't strictly part of the metadata schema, but still relevant) is that the declarative security blob format has changed from XML to a binary format similar to how custom attribute blobs are stored.


If I've missed something, please let me know.


Mattias

--
Mattias Sjögren
[EMAIL PROTECTED]

===================================
This list is hosted by DevelopMentor®  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to