Exemple #1
0
 private static bool CanCastToClassOrInterface(this TypeDesc thisType, TypeDesc otherType, StackOverflowProtect protect)
 {
     if (otherType.IsInterface)
     {
         return(thisType.CanCastToInterface(otherType, protect));
     }
     else
     {
         return(thisType.CanCastToClass(otherType, protect));
     }
 }