Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XObjectExtensions.cs
Go to the documentation of this file.
1
using
System.Xml.Linq
;
2
3
namespace
System.Xml.XPath
;
4
5
internal
static
class
XObjectExtensions
6
{
7
public
static
XContainer
GetParent
(
this
XObject
obj
)
8
{
9
XContainer
xContainer
=
obj
.
Parent
;
10
if
(
xContainer
==
null
)
11
{
12
xContainer
=
obj
.
Document
;
13
}
14
if
(
xContainer
==
obj
)
15
{
16
return
null
;
17
}
18
return
xContainer
;
19
}
20
}
System.Xml.Linq.XContainer
Definition
XContainer.cs:11
System.Xml.Linq.XObject.Parent
XElement? Parent
Definition
XObject.cs:53
System.Xml.Linq.XObject.Document
XDocument? Document
Definition
XObject.cs:39
System.Xml.Linq.XObject
Definition
XObject.cs:6
System.Xml.XPath.XObjectExtensions.GetParent
static XContainer GetParent(this XObject obj)
Definition
XObjectExtensions.cs:7
System.Xml.XPath.XObjectExtensions
Definition
XObjectExtensions.cs:6
System.Xml.Linq
Definition
BaseUriAnnotation.cs:1
System.Xml.XPath
Definition
Extensions.cs:5
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.obj
@ obj
source
System.Private.Xml.Linq
System.Xml.XPath
XObjectExtensions.cs
Generated by
1.10.0