Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ParenthesizePropertyNameAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.All)]
7{
9
10 public bool NeedParenthesis { get; }
11
13 : this(needParenthesis: false)
14 {
15 }
16
17 public ParenthesizePropertyNameAttribute(bool needParenthesis)
18 {
19 NeedParenthesis = needParenthesis;
20 }
21
22 public override bool Equals([NotNullWhen(true)] object? obj)
23 {
24 if (obj is ParenthesizePropertyNameAttribute parenthesizePropertyNameAttribute)
25 {
26 return parenthesizePropertyNameAttribute.NeedParenthesis == NeedParenthesis;
27 }
28 return false;
29 }
30
31 public override int GetHashCode()
32 {
33 return base.GetHashCode();
34 }
35
36 public override bool IsDefaultAttribute()
37 {
38 return Equals(Default);
39 }
40}
static readonly ParenthesizePropertyNameAttribute Default