public virtual bool AllowFarProtocol(ulong type) { var attr = GetType().GetCustomAttribute<AllowFarTypesAttribute>(); return attr != null && (attr.Types.Length == 0 || attr.Types.Contains(type)); }