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

◆ MetadataPropertyDescriptorWrapper()

System.ComponentModel.DataAnnotations.MetadataPropertyDescriptorWrapper.MetadataPropertyDescriptorWrapper ( PropertyDescriptor descriptor,
Attribute[] newAttributes )
inline

Definition at line 27 of file MetadataPropertyDescriptorWrapper.cs.

28 : base(descriptor, newAttributes)
29 {
30 _descriptor = descriptor;
31 foreach (Attribute attribute in newAttributes)
32 {
33 if (attribute is ReadOnlyAttribute readOnlyAttribute)
34 {
35 _isReadOnly = readOnlyAttribute.IsReadOnly;
36 break;
37 }
38 }
39 }

References System.ComponentModel.DataAnnotations.MetadataPropertyDescriptorWrapper._descriptor, and System.ComponentModel.DataAnnotations.MetadataPropertyDescriptorWrapper._isReadOnly.