J
Jon Shemitz
Imagine you have a Type value - how can you tell if it's a delegate?
If it's NOT a class, a struct, an enum, or an interface?
If it's NOT a class, a struct, an enum, or an interface?
Brock said:Type t = GetDelegateType();
if (typeof(Delegate).IsAssignableFrom(t))
{
// Yes, Jim we have a delegate....
}