internal NsExtensionRegistrar(Type type) { if (type == null) { throw new ArgumentNullException("type"); } else if (!NsExtensionAttribute.IsDefined(type)) { throw new ArgumentOutOfRangeException("type", type, "must have NsExtensionAttribute"); } this.type = type; this.config = NsExtensionAttribute.Get(type); }
public static bool IsDefined(Type type) { return(NsExtensionAttribute.Get(type) != null); }