10 instantiations of XsdDuration
System.Private.Xml (10)
System\Xml\Schema\XmlValueConverter.cs (6)
540
return new
XsdDuration
(value, XsdDuration.DurationType.DayTimeDuration).ToTimeSpan(XsdDuration.DurationType.DayTimeDuration);
545
return new
XsdDuration
(value, XsdDuration.DurationType.Duration).ToTimeSpan(XsdDuration.DurationType.Duration);
663
return new
XsdDuration
(value, XsdDuration.DurationType.YearMonthDuration).ToTimeSpan(XsdDuration.DurationType.YearMonthDuration);
693
return new
XsdDuration
(value, XsdDuration.DurationType.DayTimeDuration).ToString(XsdDuration.DurationType.DayTimeDuration);
698
return new
XsdDuration
(value, XsdDuration.DurationType.Duration).ToString(XsdDuration.DurationType.Duration);
787
return new
XsdDuration
(value, XsdDuration.DurationType.YearMonthDuration).ToString(XsdDuration.DurationType.YearMonthDuration);
System\Xml\Schema\XsdDuration.cs (1)
113
this = new
XsdDuration
(isNegative, years, months, 0, 0, 0, 0, 0);
System\Xml\XmlConvert.cs (3)
688
return new
XsdDuration
(value).ToString();
1116
duration = new
XsdDuration
(s);
1751
return new
XsdDuration
(value).TryFormat(destination, out charsWritten);
28 references to XsdDuration
System.Private.Xml (28)
System\Xml\Schema\DataTypeImplementation.cs (8)
1919
XsdDuration
duration;
1920
exception =
XsdDuration
.TryParse(s,
XsdDuration
.DurationType.YearMonthDuration, out duration);
1925
exception = duration.TryToTimeSpan(
XsdDuration
.DurationType.YearMonthDuration, out timeSpanValue);
1958
XsdDuration
duration;
1959
exception =
XsdDuration
.TryParse(s,
XsdDuration
.DurationType.DayTimeDuration, out duration);
1963
exception = duration.TryToTimeSpan(
XsdDuration
.DurationType.DayTimeDuration, out timeSpanValue);
System\Xml\Schema\XmlValueConverter.cs (12)
540
return new XsdDuration(value,
XsdDuration
.DurationType.DayTimeDuration).ToTimeSpan(
XsdDuration
.DurationType.DayTimeDuration);
545
return new XsdDuration(value,
XsdDuration
.DurationType.Duration).ToTimeSpan(
XsdDuration
.DurationType.Duration);
663
return new XsdDuration(value,
XsdDuration
.DurationType.YearMonthDuration).ToTimeSpan(
XsdDuration
.DurationType.YearMonthDuration);
693
return new XsdDuration(value,
XsdDuration
.DurationType.DayTimeDuration).ToString(
XsdDuration
.DurationType.DayTimeDuration);
698
return new XsdDuration(value,
XsdDuration
.DurationType.Duration).ToString(
XsdDuration
.DurationType.Duration);
787
return new XsdDuration(value,
XsdDuration
.DurationType.YearMonthDuration).ToString(
XsdDuration
.DurationType.YearMonthDuration);
System\Xml\Schema\XsdDuration.cs (5)
147
XsdDuration
result;
447
internal static Exception? TryParse(string s, out
XsdDuration
result)
452
internal static Exception? TryParse(string s, DurationType durationType, out
XsdDuration
result)
622
if ((parts & ~(
XsdDuration
.Parts.HasYears |
XsdDuration
.Parts.HasMonths)) != 0)
System\Xml\XmlConvert.cs (3)
1111
XsdDuration
duration;
1131
XsdDuration
duration;
1134
exception =
XsdDuration
.TryParse(s, out duration);