Просто уинт?
е:
HRESULT GetTypeDefProps (
[in] mdTypeDef td,
[out] LPWSTR szTypeDef,
[in] ULONG cchTypeDef,
[out] ULONG *pchTypeDef,
[out] DWORD *pdwTypeDefFlags,
[out] mdToken *ptkExtends
);
отлично работает с:
uint GetTypeDefProps
(
uint td,
[MarshalAs(UnmanagedType.LPArray, SizeParamIndex=2)]char[] szTypeDef,
uint cchTypeDef,
out uint pchTypeDef,
out uint pdwTypeDefFlags,
out uint ptknds
);
Пример использования;
char[] SzTypeDef;
uint CchTypeDef;
uint PchMember;
IntPtr PpvSigBlob;
uint PbSigBlob;
SzTypeDef= new char[500];
CchTypeDef= (uint)SzTypeDef.Length;
ResPT=
MetaDataImport.GetTypeDefProps
(
td,
SzTypeDef,
CchTypeDef,
out pchTypeDef,
out pdwTypeDefFlags,
out ptkExtends
);