Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PasswordPropertyTextAttribute.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.ComponentModel
;
4
5
[AttributeUsage(
AttributeTargets
.All)]
6
public
sealed
class
PasswordPropertyTextAttribute
:
Attribute
7
{
8
public
static
readonly
PasswordPropertyTextAttribute
Yes
=
new
PasswordPropertyTextAttribute
(password: true);
9
10
public
static
readonly
PasswordPropertyTextAttribute
No
=
new
PasswordPropertyTextAttribute
(password: false);
11
12
public
static
readonly
PasswordPropertyTextAttribute
Default
=
No
;
13
14
public
bool
Password
{
get
; }
15
16
public
PasswordPropertyTextAttribute
()
17
: this(password: false)
18
{
19
}
20
21
public
PasswordPropertyTextAttribute
(
bool
password)
22
{
23
Password
= password;
24
}
25
26
public
override
bool
Equals
([NotNullWhen(
true
)]
object
? o)
27
{
28
if
(o is
PasswordPropertyTextAttribute
)
29
{
30
return
((
PasswordPropertyTextAttribute
)o).Password ==
Password
;
31
}
32
return
false
;
33
}
34
35
public
override
int
GetHashCode
()
36
{
37
return
base.GetHashCode();
38
}
39
40
public
override
bool
IsDefaultAttribute
()
41
{
42
return
Equals
(
Default
);
43
}
44
}
System.Attribute
Definition
Attribute.cs:12
System.ComponentModel.PasswordPropertyTextAttribute.Yes
static readonly PasswordPropertyTextAttribute Yes
Definition
PasswordPropertyTextAttribute.cs:8
System.ComponentModel.PasswordPropertyTextAttribute.No
static readonly PasswordPropertyTextAttribute No
Definition
PasswordPropertyTextAttribute.cs:10
System.ComponentModel.PasswordPropertyTextAttribute.PasswordPropertyTextAttribute
PasswordPropertyTextAttribute(bool password)
Definition
PasswordPropertyTextAttribute.cs:21
System.ComponentModel.PasswordPropertyTextAttribute.Default
static readonly PasswordPropertyTextAttribute Default
Definition
PasswordPropertyTextAttribute.cs:12
System.ComponentModel.PasswordPropertyTextAttribute.IsDefaultAttribute
override bool IsDefaultAttribute()
Definition
PasswordPropertyTextAttribute.cs:40
System.ComponentModel.PasswordPropertyTextAttribute.Equals
override bool Equals([NotNullWhen(true)] object? o)
Definition
PasswordPropertyTextAttribute.cs:26
System.ComponentModel.PasswordPropertyTextAttribute.GetHashCode
override int GetHashCode()
Definition
PasswordPropertyTextAttribute.cs:35
System.ComponentModel.PasswordPropertyTextAttribute.Password
bool Password
Definition
PasswordPropertyTextAttribute.cs:14
System.ComponentModel.PasswordPropertyTextAttribute.PasswordPropertyTextAttribute
PasswordPropertyTextAttribute()
Definition
PasswordPropertyTextAttribute.cs:16
System.ComponentModel.PasswordPropertyTextAttribute
Definition
PasswordPropertyTextAttribute.cs:7
System.ComponentModel
Definition
ColumnAttribute.cs:3
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
source
System.ComponentModel.TypeConverter
System.ComponentModel
PasswordPropertyTextAttribute.cs
Generated by
1.10.0