Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DefaultEventAttribute.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.ComponentModel
;
4
5
[AttributeUsage(
AttributeTargets
.Class)]
6
public
sealed
class
DefaultEventAttribute
:
Attribute
7
{
8
public
static
readonly
DefaultEventAttribute
Default
=
new
DefaultEventAttribute
(
null
);
9
10
public
string
?
Name
{
get
; }
11
12
public
DefaultEventAttribute
(
string
? name)
13
{
14
Name
= name;
15
}
16
17
public
override
bool
Equals
([NotNullWhen(
true
)]
object
?
obj
)
18
{
19
if
(
obj
is
DefaultEventAttribute
defaultEventAttribute)
20
{
21
return
defaultEventAttribute.Name ==
Name
;
22
}
23
return
false
;
24
}
25
26
public
override
int
GetHashCode
()
27
{
28
return
base.GetHashCode();
29
}
30
}
System.Attribute
Definition
Attribute.cs:12
System.ComponentModel.DefaultEventAttribute.DefaultEventAttribute
DefaultEventAttribute(string? name)
Definition
DefaultEventAttribute.cs:12
System.ComponentModel.DefaultEventAttribute.Equals
override bool Equals([NotNullWhen(true)] object? obj)
Definition
DefaultEventAttribute.cs:17
System.ComponentModel.DefaultEventAttribute.Default
static readonly DefaultEventAttribute Default
Definition
DefaultEventAttribute.cs:8
System.ComponentModel.DefaultEventAttribute.Name
string? Name
Definition
DefaultEventAttribute.cs:10
System.ComponentModel.DefaultEventAttribute.GetHashCode
override int GetHashCode()
Definition
DefaultEventAttribute.cs:26
System.ComponentModel.DefaultEventAttribute
Definition
DefaultEventAttribute.cs:7
System.ComponentModel
Definition
ColumnAttribute.cs:3
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.ExceptionArgument.obj
@ obj
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
source
System.ComponentModel.TypeConverter
System.ComponentModel
DefaultEventAttribute.cs
Generated by
1.10.0