public void RegisterTag(UserTag tag) { if (tag == null) throw new ArgumentNullException("tag"); RegisterTag(tag.Name, tag); }
public TypeMember(UserTag tag, MemberInfo member, string name, bool required) { this.tag = tag; this.member = member; this.name = name; this.required = required; memberType = (member is PropertyInfo ? ((PropertyInfo) member).PropertyType : ((FieldInfo) member).FieldType); CreateTypeConverter(); }