Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EditorBrowsableAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate)]
7{
8 public EditorBrowsableState State { get; }
9
14
19
20 public override bool Equals([NotNullWhen(true)] object? obj)
21 {
22 if (obj == this)
23 {
24 return true;
25 }
26 if (obj is EditorBrowsableAttribute editorBrowsableAttribute)
27 {
28 return editorBrowsableAttribute.State == State;
29 }
30 return false;
31 }
32
33 public override int GetHashCode()
34 {
35 return base.GetHashCode();
36 }
37}
override bool Equals([NotNullWhen(true)] object? obj)