public override bool IsTypeAuthorized(ICustomInterpreted t) { bool result = base.IsTypeAuthorized(t); foreach (var type in AuthorizedTypes) { result ^= type.IsInterface && t.GetType().GetInterface(type.Name) != null; } return(result); }
public bool IsTypeAuthorized(ICustomInterpreted t) { return(IsTypeAuthorized(t.GetType())); }