Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ImportContext.cs
Go to the documentation of this file.
1
using
System.Collections
;
2
using
System.Collections.Specialized
;
3
4
namespace
System.Xml.Serialization
;
5
6
public
class
ImportContext
7
{
8
private
readonly
bool
_shareTypes
;
9
10
private
SchemaObjectCache
_cache
;
11
12
private
Hashtable
_mappings
;
13
14
private
Hashtable
_elements
;
15
16
private
CodeIdentifiers
_typeIdentifiers
;
17
18
internal
SchemaObjectCache
Cache
19
{
20
get
21
{
22
if
(
_cache
==
null
)
23
{
24
_cache
=
new
SchemaObjectCache
();
25
}
26
return
_cache
;
27
}
28
}
29
30
internal
Hashtable
Elements
31
{
32
get
33
{
34
if
(
_elements
==
null
)
35
{
36
_elements
=
new
Hashtable
();
37
}
38
return
_elements
;
39
}
40
}
41
42
internal
Hashtable
Mappings
43
{
44
get
45
{
46
if
(
_mappings
==
null
)
47
{
48
_mappings
=
new
Hashtable
();
49
}
50
return
_mappings
;
51
}
52
}
53
54
public
CodeIdentifiers
TypeIdentifiers
55
{
56
get
57
{
58
if
(
_typeIdentifiers
==
null
)
59
{
60
_typeIdentifiers
=
new
CodeIdentifiers
();
61
}
62
return
_typeIdentifiers
;
63
}
64
}
65
66
public
bool
ShareTypes
=>
_shareTypes
;
67
68
public
StringCollection
Warnings
=> Cache.Warnings;
69
70
public
ImportContext
(
CodeIdentifiers
?
identifiers
,
bool
shareTypes
)
71
{
72
_typeIdentifiers
=
identifiers
;
73
_shareTypes
=
shareTypes
;
74
}
75
76
internal
ImportContext
()
77
:
this
(
null
,
shareTypes
:
false
)
78
{
79
}
80
}
System.Collections.Hashtable
Definition
Hashtable.cs:13
System.Collections.Specialized.StringCollection
Definition
StringCollection.cs:8
System.Xml.Serialization.CodeIdentifiers
Definition
CodeIdentifiers.cs:7
System.Xml.Serialization.ImportContext.ImportContext
ImportContext()
Definition
ImportContext.cs:76
System.Xml.Serialization.ImportContext._mappings
Hashtable _mappings
Definition
ImportContext.cs:12
System.Xml.Serialization.ImportContext.ShareTypes
bool ShareTypes
Definition
ImportContext.cs:66
System.Xml.Serialization.ImportContext._typeIdentifiers
CodeIdentifiers _typeIdentifiers
Definition
ImportContext.cs:16
System.Xml.Serialization.ImportContext._elements
Hashtable _elements
Definition
ImportContext.cs:14
System.Xml.Serialization.ImportContext._shareTypes
readonly bool _shareTypes
Definition
ImportContext.cs:8
System.Xml.Serialization.ImportContext.Mappings
Hashtable Mappings
Definition
ImportContext.cs:43
System.Xml.Serialization.ImportContext._cache
SchemaObjectCache _cache
Definition
ImportContext.cs:10
System.Xml.Serialization.ImportContext.TypeIdentifiers
CodeIdentifiers TypeIdentifiers
Definition
ImportContext.cs:55
System.Xml.Serialization.ImportContext.ImportContext
ImportContext(CodeIdentifiers? identifiers, bool shareTypes)
Definition
ImportContext.cs:70
System.Xml.Serialization.ImportContext.Warnings
StringCollection Warnings
Definition
ImportContext.cs:68
System.Xml.Serialization.ImportContext
Definition
ImportContext.cs:7
System.Xml.Serialization.SchemaObjectCache
Definition
SchemaObjectCache.cs:9
System.Collections.Specialized
Definition
CollectionsUtil.cs:1
System.Collections
Definition
BlockingCollection.cs:8
System.Xml.Serialization
Definition
DateTimeSerializationSection.cs:1
System.Xml.ValueHandleType.Dictionary
@ Dictionary
source
System.Private.Xml
System.Xml.Serialization
ImportContext.cs
Generated by
1.10.0