Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
KnownTypeAttribute.cs
Go to the documentation of this file.
1
namespace
System.Runtime.Serialization
;
2
3
[
AttributeUsage
(
AttributeTargets
.Class |
AttributeTargets
.Struct, Inherited =
true
, AllowMultiple =
true
)]
4
public
sealed
class
KnownTypeAttribute
:
Attribute
5
{
6
public
string
?
MethodName
{
get
; }
7
8
public
Type
?
Type
{
get
; }
9
10
public
KnownTypeAttribute
(
Type
type
)
11
{
12
Type
=
type
;
13
}
14
15
public
KnownTypeAttribute
(
string
methodName
)
16
{
17
MethodName
=
methodName
;
18
}
19
}
System.Attribute
Definition
Attribute.cs:12
System.Runtime.Serialization.KnownTypeAttribute.KnownTypeAttribute
KnownTypeAttribute(string methodName)
Definition
KnownTypeAttribute.cs:15
System.Runtime.Serialization.KnownTypeAttribute.KnownTypeAttribute
KnownTypeAttribute(Type type)
Definition
KnownTypeAttribute.cs:10
System.Runtime.Serialization.KnownTypeAttribute.MethodName
string? MethodName
Definition
KnownTypeAttribute.cs:6
System.Runtime.Serialization.KnownTypeAttribute
Definition
KnownTypeAttribute.cs:5
System.Type
Definition
Type.cs:14
System.Runtime.Serialization.CollectionKind.Dictionary
@ Dictionary
System.Runtime.Serialization
Definition
SerializationGuard.cs:3
System.ExceptionArgument.type
@ type
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
source
System.Runtime.Serialization.Primitives
System.Runtime.Serialization
KnownTypeAttribute.cs
Generated by
1.10.0