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
