all groups > dotnet sdk > august 2007 >
You're in the

dotnet sdk

group:

IMetaDataImport::GetFieldProps getting a type


IMetaDataImport::GetFieldProps getting a type jim
8/17/2007 10:32:02 AM
dotnet sdk:
The documentation for GetFieldProps indicates I can get the type of the field
from the second parameter (pClass [out] A pointer to a TypeDef token that
represents the type of the field.) Unfortunately, it appears that it is
returning the type of the class in which the field is defined. Is there a
way to get the type of a field using the unmanaged API?

thanks - Jim


Re: IMetaDataImport::GetFieldProps getting a type Mattias Sjögren
8/17/2007 7:51:27 PM

[quoted text, click to view]

The field type is returned as part of the signature, in ppvSigBlob.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button