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

◆ MemberDescriptor() [3/4]

System.ComponentModel.MemberDescriptor.MemberDescriptor ( MemberDescriptor descr)
inlineprotected

Definition at line 121 of file MemberDescriptor.cs.

122 {
123 if (descr == null)
124 {
125 throw new ArgumentNullException("descr");
126 }
127 _name = descr.Name;
129 _nameHash = _name?.GetHashCode() ?? 0;
130 _attributes = new Attribute[descr.Attributes.Count];
131 descr.Attributes.CopyTo(_attributes, 0);
132 _attributesFiltered = true;
134 }
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)

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, System.Collections.Generic.Dictionary< TKey, TValue >.CopyTo(), and System.Collections.Generic.Dictionary< TKey, TValue >.Count.