Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Datatype_yearMonthDuration.cs
Go to the documentation of this file.
1
namespace
System.Xml.Schema
;
2
3
internal
sealed
class
Datatype_yearMonthDuration
:
Datatype_duration
4
{
5
public
override
XmlTypeCode
TypeCode
=>
XmlTypeCode
.YearMonthDuration;
6
7
internal
override
Exception
TryParseValue
(
string
s
,
XmlNameTable
nameTable
,
IXmlNamespaceResolver
nsmgr
,
out
object
typedValue)
8
{
9
typedValue =
null
;
10
if
(
s
==
null
||
s
.Length == 0)
11
{
12
return
new
XmlSchemaException
(
System
.
SR
.
Sch_EmptyAttributeValue
,
string
.Empty);
13
}
14
Exception
ex
=
DatatypeImplementation
.
durationFacetsChecker
.CheckLexicalFacets(
ref
s
,
this
);
15
if
(
ex
==
null
)
16
{
17
ex
=
XsdDuration
.
TryParse
(
s
,
XsdDuration
.
DurationType
.YearMonthDuration,
out
var
result);
18
if
(
ex
==
null
)
19
{
20
ex
= result.TryToTimeSpan(
XsdDuration
.
DurationType
.YearMonthDuration,
out
var
result2
);
21
if
(
ex
==
null
)
22
{
23
ex
=
DatatypeImplementation
.
durationFacetsChecker
.CheckValueFacets(
result2
,
this
);
24
if
(
ex
==
null
)
25
{
26
typedValue =
result2
;
27
return
null
;
28
}
29
}
30
}
31
}
32
return
ex
;
33
}
34
}
System.Exception
Definition
Exception.cs:15
System.SR.Sch_EmptyAttributeValue
static string Sch_EmptyAttributeValue
Definition
SR.cs:570
System.SR
Definition
SR.cs:7
System.Xml.Schema.DatatypeImplementation.durationFacetsChecker
static FacetsChecker durationFacetsChecker
Definition
DatatypeImplementation.cs:85
System.Xml.Schema.DatatypeImplementation
Definition
DatatypeImplementation.cs:6
System.Xml.Schema.Datatype_duration
Definition
Datatype_duration.cs:4
System.Xml.Schema.Datatype_yearMonthDuration.TryParseValue
override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue)
Definition
Datatype_yearMonthDuration.cs:7
System.Xml.Schema.Datatype_yearMonthDuration
Definition
Datatype_yearMonthDuration.cs:4
System.Xml.Schema.XmlSchemaException
Definition
XmlSchemaException.cs:10
System.Xml.XmlNameTable
Definition
XmlNameTable.cs:4
System.Xml.IXmlNamespaceResolver
Definition
IXmlNamespaceResolver.cs:6
System.Xml.Schema.XmlTypeCode
XmlTypeCode
Definition
XmlTypeCode.cs:4
System.Xml.Schema
Definition
Extensions.cs:3
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.TypeCode
TypeCode
Definition
TypeCode.cs:4
System.ExceptionArgument.s
@ s
System
Definition
BlockingCollection.cs:8
System.Xml.Schema.XsdDuration.TryParse
static Exception TryParse(string s, out XsdDuration result)
Definition
XsdDuration.cs:327
System.Xml.Schema.XsdDuration.DurationType
DurationType
Definition
XsdDuration.cs:19
System.Xml.Schema.XsdDuration
Definition
XsdDuration.cs:6
source
System.Private.Xml
System.Xml.Schema
Datatype_yearMonthDuration.cs
Generated by
1.10.0