Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NotifyParentPropertyAttribute.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.ComponentModel
;
4
5
[AttributeUsage(
AttributeTargets
.Property)]
6
public
sealed
class
NotifyParentPropertyAttribute
:
Attribute
7
{
8
public
static
readonly
NotifyParentPropertyAttribute
Yes
=
new
NotifyParentPropertyAttribute
(notifyParent: true);
9
10
public
static
readonly
NotifyParentPropertyAttribute
No
=
new
NotifyParentPropertyAttribute
(notifyParent: false);
11
12
public
static
readonly
NotifyParentPropertyAttribute
Default
=
No
;
13
14
public
bool
NotifyParent
{
get
; }
15
16
public
NotifyParentPropertyAttribute
(
bool
notifyParent)
17
{
18
NotifyParent
= notifyParent;
19
}
20
21
public
override
bool
Equals
([NotNullWhen(
true
)]
object
?
obj
)
22
{
23
if
(
obj
is
NotifyParentPropertyAttribute
notifyParentPropertyAttribute)
24
{
25
return
notifyParentPropertyAttribute.NotifyParent ==
NotifyParent
;
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.NotifyParentPropertyAttribute.GetHashCode
override int GetHashCode()
Definition
NotifyParentPropertyAttribute.cs:30
System.ComponentModel.NotifyParentPropertyAttribute.Equals
override bool Equals([NotNullWhen(true)] object? obj)
Definition
NotifyParentPropertyAttribute.cs:21
System.ComponentModel.NotifyParentPropertyAttribute.IsDefaultAttribute
override bool IsDefaultAttribute()
Definition
NotifyParentPropertyAttribute.cs:35
System.ComponentModel.NotifyParentPropertyAttribute.NotifyParent
bool NotifyParent
Definition
NotifyParentPropertyAttribute.cs:14
System.ComponentModel.NotifyParentPropertyAttribute.Default
static readonly NotifyParentPropertyAttribute Default
Definition
NotifyParentPropertyAttribute.cs:12
System.ComponentModel.NotifyParentPropertyAttribute.NotifyParentPropertyAttribute
NotifyParentPropertyAttribute(bool notifyParent)
Definition
NotifyParentPropertyAttribute.cs:16
System.ComponentModel.NotifyParentPropertyAttribute.Yes
static readonly NotifyParentPropertyAttribute Yes
Definition
NotifyParentPropertyAttribute.cs:8
System.ComponentModel.NotifyParentPropertyAttribute.No
static readonly NotifyParentPropertyAttribute No
Definition
NotifyParentPropertyAttribute.cs:10
System.ComponentModel.NotifyParentPropertyAttribute
Definition
NotifyParentPropertyAttribute.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
NotifyParentPropertyAttribute.cs
Generated by
1.10.0