Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
ChameleonKey.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Xml.Schema
;
4
5
internal
sealed
class
ChameleonKey
6
{
7
internal
string
targetNS
;
8
9
internal
Uri
chameleonLocation
;
10
11
internal
XmlSchema
originalSchema
;
12
13
private
int
_hashCode
;
14
15
public
ChameleonKey
(
string
ns,
XmlSchema
originalSchema
)
16
{
17
targetNS
= ns;
18
chameleonLocation
=
originalSchema
.
BaseUri
;
19
if
(
chameleonLocation
.
OriginalString
.Length == 0)
20
{
21
this.originalSchema
=
originalSchema
;
22
}
23
}
15
public
ChameleonKey
(
string
ns,
XmlSchema
originalSchema
) {
…
}
24
25
public
override
int
GetHashCode
()
26
{
27
if
(
_hashCode
== 0)
28
{
29
_hashCode
=
targetNS
.GetHashCode() +
chameleonLocation
.
GetHashCode
() + ((
originalSchema
!=
null
) ?
originalSchema
.GetHashCode() : 0);
30
}
31
return
_hashCode
;
32
}
25
public
override
int
GetHashCode
() {
…
}
33
34
public
override
bool
Equals
([
NotNullWhen
(
true
)]
object
obj
)
35
{
36
if
(
this
==
obj
)
37
{
38
return
true
;
39
}
40
if
(
obj
is
ChameleonKey
chameleonKey
)
41
{
42
if
(
targetNS
.Equals(
chameleonKey
.targetNS) &&
chameleonLocation
.
Equals
(
chameleonKey
.chameleonLocation))
43
{
44
return
originalSchema
==
chameleonKey
.originalSchema;
45
}
46
return
false
;
47
}
48
return
false
;
49
}
34
public
override
bool
Equals
([
NotNullWhen
(
true
)]
object
obj
) {
…
}
50
}
5
internal
sealed
class
ChameleonKey
{
…
};
System.Uri.OriginalString
string OriginalString
Definition
Uri.cs:516
System.Uri.Equals
override bool Equals([NotNullWhen(true)] object? comparand)
Definition
Uri.cs:1166
System.Uri.GetHashCode
override int GetHashCode()
Definition
Uri.cs:1103
System.Uri
Definition
Uri.cs:16
System.Xml.Schema.ChameleonKey.originalSchema
XmlSchema originalSchema
Definition
ChameleonKey.cs:11
System.Xml.Schema.ChameleonKey.targetNS
string targetNS
Definition
ChameleonKey.cs:7
System.Xml.Schema.ChameleonKey.ChameleonKey
ChameleonKey(string ns, XmlSchema originalSchema)
Definition
ChameleonKey.cs:15
System.Xml.Schema.ChameleonKey.GetHashCode
override int GetHashCode()
Definition
ChameleonKey.cs:25
System.Xml.Schema.ChameleonKey.Equals
override bool Equals([NotNullWhen(true)] object obj)
Definition
ChameleonKey.cs:34
System.Xml.Schema.ChameleonKey._hashCode
int _hashCode
Definition
ChameleonKey.cs:13
System.Xml.Schema.ChameleonKey.chameleonLocation
Uri chameleonLocation
Definition
ChameleonKey.cs:9
System.Xml.Schema.ChameleonKey
Definition
ChameleonKey.cs:6
System.Xml.Schema.XmlSchema.BaseUri
Uri? BaseUri
Definition
XmlSchema.cs:317
System.Xml.Schema.XmlSchema
Definition
XmlSchema.cs:12
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Xml.Schema
Definition
Extensions.cs:3
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.obj
@ obj
source
System.Private.Xml
System.Xml.Schema
ChameleonKey.cs
Generated by
1.10.0