Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SerObjectInfoCache.cs
Go to the documentation of this file.
1
using
System.Reflection
;
2
3
namespace
System.Runtime.Serialization.Formatters.Binary
;
4
5
internal
sealed
class
SerObjectInfoCache
6
{
7
internal
readonly
string
_fullTypeName
;
8
9
internal
readonly
string
_assemblyString
;
10
11
internal
readonly
bool
_hasTypeForwardedFrom
;
12
13
internal
MemberInfo
[]
_memberInfos
;
14
15
internal
string
[]
_memberNames
;
16
17
internal
Type
[]
_memberTypes
;
18
19
internal
SerObjectInfoCache
(
string
typeName,
string
assemblyName
,
bool
hasTypeForwardedFrom
)
20
{
21
_fullTypeName
= typeName;
22
_assemblyString
=
assemblyName
;
23
_hasTypeForwardedFrom
=
hasTypeForwardedFrom
;
24
}
25
26
internal
SerObjectInfoCache
(
Type
type
)
27
{
28
TypeInformation
typeInformation
=
BinaryFormatter
.
GetTypeInformation
(
type
);
29
_fullTypeName
=
typeInformation
.FullTypeName;
30
_assemblyString
=
typeInformation
.AssemblyString;
31
_hasTypeForwardedFrom
=
typeInformation
.HasTypeForwardedFrom;
32
}
33
}
System.Reflection.MemberInfo
Definition
MemberInfo.cs:7
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.GetTypeInformation
static TypeInformation GetTypeInformation(Type type)
Definition
BinaryFormatter.cs:108
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
Definition
BinaryFormatter.cs:8
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache.SerObjectInfoCache
SerObjectInfoCache(string typeName, string assemblyName, bool hasTypeForwardedFrom)
Definition
SerObjectInfoCache.cs:19
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache._fullTypeName
readonly string _fullTypeName
Definition
SerObjectInfoCache.cs:7
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache.SerObjectInfoCache
SerObjectInfoCache(Type type)
Definition
SerObjectInfoCache.cs:26
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache._memberTypes
Type[] _memberTypes
Definition
SerObjectInfoCache.cs:17
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache._assemblyString
readonly string _assemblyString
Definition
SerObjectInfoCache.cs:9
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache._memberInfos
MemberInfo[] _memberInfos
Definition
SerObjectInfoCache.cs:13
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache._memberNames
string[] _memberNames
Definition
SerObjectInfoCache.cs:15
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache._hasTypeForwardedFrom
readonly bool _hasTypeForwardedFrom
Definition
SerObjectInfoCache.cs:11
System.Runtime.Serialization.Formatters.Binary.SerObjectInfoCache
Definition
SerObjectInfoCache.cs:6
System.Runtime.Serialization.Formatters.Binary.TypeInformation
Definition
TypeInformation.cs:4
System.Type
Definition
Type.cs:14
System.Reflection
Definition
ICustomTypeProvider.cs:1
System.Runtime.Serialization.Formatters.Binary
Definition
BinaryArray.cs:1
System.Runtime.Serialization.CollectionKind.Dictionary
@ Dictionary
System.ExceptionArgument.type
@ type
source
System.Runtime.Serialization.Formatters
System.Runtime.Serialization.Formatters.Binary
SerObjectInfoCache.cs
Generated by
1.10.0