Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HelpKeywordAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)]
6public sealed class HelpKeywordAttribute : Attribute
7{
8 public static readonly HelpKeywordAttribute Default = new HelpKeywordAttribute();
9
10 public string? HelpKeyword { get; }
11
13 {
14 }
15
16 public HelpKeywordAttribute(string keyword)
17 {
18 HelpKeyword = keyword ?? throw new ArgumentNullException("keyword");
19 }
20
22 {
23 if (t == null)
24 {
25 throw new ArgumentNullException("t");
26 }
28 }
29
30 public override bool Equals([NotNullWhen(true)] object? obj)
31 {
32 if (obj == this)
33 {
34 return true;
35 }
36 if (obj != null && obj is HelpKeywordAttribute)
37 {
38 return ((HelpKeywordAttribute)obj).HelpKeyword == HelpKeyword;
39 }
40 return false;
41 }
42
43 public override int GetHashCode()
44 {
45 return base.GetHashCode();
46 }
47
48 public override bool IsDefaultAttribute()
49 {
50 return Equals(Default);
51 }
52}
override bool Equals([NotNullWhen(true)] object? obj)
static readonly HelpKeywordAttribute Default
string? FullName
Definition Type.cs:47