private static void DemandReflectionAccess(Type type) { try { MemberAccessPermission.Demand(); } catch (SecurityException) { DemandGrantSet(type.Assembly); } }
private static void DemandReflectionAccess(Type type) { #if MONO_FEATURE_CAS try { MemberAccessPermission.Demand(); } catch (SecurityException) { DemandGrantSet(type.Assembly); } #endif }
private static void DemandReflectionAccess(Type type) { MemberAccessPermission.Demand(); }