Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MemberDescriptor() [2/4]

System.ComponentModel.MemberDescriptor.MemberDescriptor ( string name,
Attribute?[] attributes )
inlineprotected

Definition at line 100 of file MemberDescriptor.cs.

101 {
102 if (name == null)
103 {
104 throw new ArgumentNullException("name");
105 }
106 if (name.Length == 0)
107 {
108 throw new ArgumentException(System.SR.InvalidMemberName, "name");
109 }
110 _name = name;
112 _nameHash = name.GetHashCode();
113 if (attributes != null)
114 {
115 _attributes = attributes;
116 _attributesFiltered = false;
117 }
119 }
static string InvalidMemberName
Definition SR.cs:36
Definition SR.cs:7

References System.ComponentModel.MemberDescriptor._attributes, System.ComponentModel.MemberDescriptor._attributesFiltered, System.ComponentModel.MemberDescriptor._displayName, System.ComponentModel.MemberDescriptor._name, System.ComponentModel.MemberDescriptor._nameHash, System.ComponentModel.MemberDescriptor._originalAttributes, and System.SR.InvalidMemberName.