yeah I figured this out, thanks.

I thought there is an easier way, a flag somewhere which I missed.

Joe

On Thu, Dec 2, 2010 at 5:19 PM, Simon Cropp <[email protected]> wrote:
> How about this
>
>    public static class CecilExtensions
>    {
>                public static bool IsDelegate(this TypeDefinition 
> typeDefinition)
>                {
>                        if (typeDefinition.BaseType == null)
>                        {
>                                return false;
>                        }
>                        return typeDefinition.BaseType.FullName == 
> "System.MulticastDelegate";
>                }
>
>        }
>
> On Fri, Dec 3, 2010 at 8:56 AM, joer <[email protected]> wrote:
>> Delegates seem to be normal Types same as classes.
>>
>> How do I know that its a delegate ?
>>
>> Joe
>>
>> --
>> --
>> mono-cecil
>
> --
> --
> mono-cecil



-- 
Kindest regards

Joe Robe
President
RobeSoft Inc.
Phone:+1 954 234 2662
Fax:+1 813 425-9759
EMail:[email protected]
Skype:joer00
Yahoo Messenger ONLY(do not send email):[email protected]
MSN:Messenger ONLY(do not send email):[email protected]
www.RobeSoft.com

-- 
--
mono-cecil

Reply via email to