Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DebuggerTypeProxyAttribute.cs
Go to the documentation of this file.
2
3namespace System.Diagnostics;
4
5[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)]
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}
DebuggerTypeProxyAttribute([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
DebuggerTypeProxyAttribute([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] string typeName)