Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DefaultBindingPropertyAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.Class)]
7{
9
10 public string? Name { get; }
11
15
17 {
18 Name = name;
19 }
20
21 public override bool Equals([NotNullWhen(true)] object? obj)
22 {
23 if (obj is DefaultBindingPropertyAttribute defaultBindingPropertyAttribute)
24 {
25 return defaultBindingPropertyAttribute.Name == Name;
26 }
27 return false;
28 }
29
30 public override int GetHashCode()
31 {
32 return base.GetHashCode();
33 }
34}
static readonly DefaultBindingPropertyAttribute Default