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

◆ DisplayName

string System.ComponentModel.DataAnnotations.ValidationContext.DisplayName
getset

Definition at line 18 of file ValidationContext.cs.

19 {
20 get
21 {
22 if (string.IsNullOrEmpty(_displayName))
23 {
25 if (string.IsNullOrEmpty(_displayName))
26 {
28 }
29 }
30 return _displayName;
31 }
32 set
33 {
34 if (string.IsNullOrEmpty(value))
35 {
36 throw new ArgumentNullException("value");
37 }
39 }
40 }

Referenced by System.ComponentModel.DataAnnotations.ValidationAttribute.GetValidationResult(), and System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid().