Re: Getting an mdTypeDef for the type of a field
Nam Tran <[email protected]> Wed, 11 May 2005 05:41:30 +1000
| Newsgroups | gmane.comp.windows.devel.dotnet.rotor |
|---|---|
| Message-ID | <[email protected]> |
When you're inside the EE, you can certainly get an IMetaDataImport pointer= .=20 For example, if you have a Module*, you can get its IMetaDataImport pointer= . If you'd like to use the internal import interface, after doing a=20 GetSigOfFieldDef, you can use FieldSig class (siginfo.*pp) to pick out ever= y=20 detail of the signature, including the field type. Nam On 5/11/05, Arild Fines <[email protected]> wrote: >=20 > Given an mdFieldDef, is there a way to get an mdTypeDef for the type of > the field the mdFieldDef represents? IMetaDataImport defines a > GetFieldProps method, which seems to be able to do what I want, but > internally in the EE you only seem to have access to the > IMDInternalImport interface, which seems vaguely different. >=20 > IMDInternalImport defines the method GetSigOfFieldDef(), which returns a > PCOR_SIGNATURE, but I don't seem to be able to find a way to get a > metadata token from that either. >=20 > -- > Arild >=20 > AnkhSVN: http://ankhsvn.tigris.org > Blog: http://ankhsvn.com/blog > IRC: irc://irc.freenode.net/ankhsvn >=20 > "The problem in the world today is communication. Too much > communication." -- Homer Simpson >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > This list is hosted by DevelopMentor(r) http://www.develop.com >=20 > View archives and manage your subscription(s) at=20 > http://discuss.develop.com > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This list is hosted by DevelopMentor=AE http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com