private static bool SpecialAllowCriticalAttributes(RuntimeType type) { if (type != (RuntimeType)null && type.Assembly.IsFullyTrusted) { return(RuntimeTypeHandle.IsEquivalentType(type)); } return(false); }
private static bool SpecialAllowCriticalAttributes(RuntimeType type) { return(type.Assembly.IsFullyTrusted && RuntimeTypeHandle.IsEquivalentType(type)); }