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