Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ColumnAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
7{
8 private int _order = -1;
9
10 private string _typeName;
11
12 public string? Name { get; }
13
14 public int Order
15 {
16 get
17 {
18 return _order;
19 }
20 set
21 {
22 if (value < 0)
23 {
24 throw new ArgumentOutOfRangeException("value");
25 }
26 _order = value;
27 }
28 }
29
30 public string? TypeName
31 {
32 get
33 {
34 return _typeName;
35 }
36 [param: DisallowNull]
37 set
38 {
39 if (string.IsNullOrWhiteSpace(value))
40 {
42 }
44 }
45 }
46
48 {
49 }
50
51 public ColumnAttribute(string name)
52 {
53 if (string.IsNullOrWhiteSpace(name))
54 {
56 }
57 Name = name;
58 }
59}
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string ArgumentIsNullOrWhitespace
Definition SR.cs:14
Definition SR.cs:7