Пример #1
0
        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);
        }
Пример #2
0
 public static bool IsDefined(Type type)
 {
     return(NsExtensionAttribute.Get(type) != null);
 }