Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MergablePropertyAttribute.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
MergablePropertyAttribute
:
Attribute
7
{
8
public
static
readonly
MergablePropertyAttribute
Yes
=
new
MergablePropertyAttribute
(allowMerge: true);
9
10
public
static
readonly
MergablePropertyAttribute
No
=
new
MergablePropertyAttribute
(allowMerge: false);
11
12
public
static
readonly
MergablePropertyAttribute
Default
=
Yes
;
13
14
public
bool
AllowMerge
{
get
; }
15
16
public
MergablePropertyAttribute
(
bool
allowMerge)
17
{
18
AllowMerge
= allowMerge;
19
}
20
21
public
override
bool
Equals
([NotNullWhen(
true
)]
object
?
obj
)
22
{
23
if
(
obj
is
MergablePropertyAttribute
mergablePropertyAttribute)
24
{
25
return
mergablePropertyAttribute.AllowMerge ==
AllowMerge
;
26
}
27
return
false
;
28
}
29
30
public
override
int
GetHashCode
()
31
{
32
return
base.GetHashCode();
33
}
34
35
public
override
bool
IsDefaultAttribute
()
36
{
37
return
Equals
(
Default
);
38
}
39
}
System.Attribute
Definition
Attribute.cs:12
System.ComponentModel.MergablePropertyAttribute.MergablePropertyAttribute
MergablePropertyAttribute(bool allowMerge)
Definition
MergablePropertyAttribute.cs:16
System.ComponentModel.MergablePropertyAttribute.Yes
static readonly MergablePropertyAttribute Yes
Definition
MergablePropertyAttribute.cs:8
System.ComponentModel.MergablePropertyAttribute.Default
static readonly MergablePropertyAttribute Default
Definition
MergablePropertyAttribute.cs:12
System.ComponentModel.MergablePropertyAttribute.IsDefaultAttribute
override bool IsDefaultAttribute()
Definition
MergablePropertyAttribute.cs:35
System.ComponentModel.MergablePropertyAttribute.Equals
override bool Equals([NotNullWhen(true)] object? obj)
Definition
MergablePropertyAttribute.cs:21
System.ComponentModel.MergablePropertyAttribute.AllowMerge
bool AllowMerge
Definition
MergablePropertyAttribute.cs:14
System.ComponentModel.MergablePropertyAttribute.No
static readonly MergablePropertyAttribute No
Definition
MergablePropertyAttribute.cs:10
System.ComponentModel.MergablePropertyAttribute.GetHashCode
override int GetHashCode()
Definition
MergablePropertyAttribute.cs:30
System.ComponentModel.MergablePropertyAttribute
Definition
MergablePropertyAttribute.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.Primitives
System.ComponentModel
MergablePropertyAttribute.cs
Generated by
1.10.0