Thanks Alex! Is this method expensive as far as performance is
concerned?

On Nov 29, 2:25 am, Alex <[email protected]> wrote:
> Hi,
>
> You need to Resolve() the FieldType to then be able to get at its
> Interfaces property.
>
> In general, you can't cast references to definitions.
>
> Regards,
> Alex
>
> On Tue, Nov 29, 2011 at 1:27 AM, deedee <[email protected]> wrote:
> > Hi,
>
> > I want to know if the type of a member variable of a class implements
> > a certain interface or not. For that purpose, I got the list of all
> > the field definitions within that class, and am trying to get some
> > information from them ( like maybe casting a FieldType as a
> > TypeDefinition/Reference and then see if that type has interfaces or
> > not..and so on. But looks like there is no such information present.
> > Also, when I try and cast the FieldType to TypeDefinition, it returns
> > null.
>
> > What is the best way to achieve what I want?
>
> > Thanks!
>
> > --
> > --
> > mono-cecil

-- 
--
mono-cecil

Reply via email to