Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DataMemberAttribute.cs
Go to the documentation of this file.
2
3[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
4public sealed class DataMemberAttribute : Attribute
5{
6 private string _name;
7
8 private bool _isNameSetExplicitly;
9
10 private int _order = -1;
11
12 public string? Name
13 {
14 get
15 {
16 return _name;
17 }
18 set
19 {
20 _name = value;
22 }
23 }
24
26
27 public int Order
28 {
29 get
30 {
31 return _order;
32 }
33 set
34 {
35 if (value < 0)
36 {
38 }
39 _order = value;
40 }
41 }
42
43 public bool IsRequired { get; set; }
44
45 public bool EmitDefaultValue { get; set; } = true;
46
47}
static string OrderCannotBeNegative
Definition SR.cs:14
Definition SR.cs:7