Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DebuggerTypeProxyAttribute.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Diagnostics
;
4
5
[AttributeUsage(
AttributeTargets
.Assembly |
AttributeTargets
.Class |
AttributeTargets
.Struct, AllowMultiple =
true
)]
6
public
sealed
class
DebuggerTypeProxyAttribute
:
Attribute
7
{
8
private
Type
_target
;
9
10
[DynamicallyAccessedMembers(
DynamicallyAccessedMemberTypes
.All)]
11
public
string
ProxyTypeName
{
get
; }
12
13
public
Type
?
Target
14
{
15
get
16
{
17
return
_target
;
18
}
19
set
20
{
21
if
(
value
==
null
)
22
{
23
throw
new
ArgumentNullException
(
"value"
);
24
}
25
TargetTypeName
=
value
.AssemblyQualifiedName;
26
_target
=
value
;
27
}
28
}
29
30
public
string
?
TargetTypeName
{
get
;
set
; }
31
32
public
DebuggerTypeProxyAttribute
([DynamicallyAccessedMembers(
DynamicallyAccessedMemberTypes
.All)]
Type
type
)
33
{
34
if
(
type
==
null
)
35
{
36
throw
new
ArgumentNullException
(
"type"
);
37
}
38
ProxyTypeName
=
type
.AssemblyQualifiedName;
39
}
40
41
public
DebuggerTypeProxyAttribute
([DynamicallyAccessedMembers(
DynamicallyAccessedMemberTypes
.All)]
string
typeName)
42
{
43
ProxyTypeName
= typeName;
44
}
45
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Attribute
Definition
Attribute.cs:12
System.Diagnostics.DebuggerTypeProxyAttribute.ProxyTypeName
string ProxyTypeName
Definition
DebuggerTypeProxyAttribute.cs:11
System.Diagnostics.DebuggerTypeProxyAttribute._target
Type _target
Definition
DebuggerTypeProxyAttribute.cs:8
System.Diagnostics.DebuggerTypeProxyAttribute.Target
Type? Target
Definition
DebuggerTypeProxyAttribute.cs:14
System.Diagnostics.DebuggerTypeProxyAttribute.TargetTypeName
string? TargetTypeName
Definition
DebuggerTypeProxyAttribute.cs:30
System.Diagnostics.DebuggerTypeProxyAttribute.DebuggerTypeProxyAttribute
DebuggerTypeProxyAttribute([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
Definition
DebuggerTypeProxyAttribute.cs:32
System.Diagnostics.DebuggerTypeProxyAttribute.DebuggerTypeProxyAttribute
DebuggerTypeProxyAttribute([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] string typeName)
Definition
DebuggerTypeProxyAttribute.cs:41
System.Diagnostics.DebuggerTypeProxyAttribute
Definition
DebuggerTypeProxyAttribute.cs:7
System.Type
Definition
Type.cs:14
System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes
DynamicallyAccessedMemberTypes
Definition
DynamicallyAccessedMemberTypes.cs:5
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Diagnostics
Definition
AggregationManager.cs:6
System.ExceptionArgument.value
@ value
System.ExceptionArgument.type
@ type
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
source
System.Private.CoreLib
System.Diagnostics
DebuggerTypeProxyAttribute.cs
Generated by
1.10.0