11 instantiations of XsdDuration
System.Xml (11)
System\Xml\Schema\XmlValueConverter.cs (6)
595
return new
XsdDuration
(value, XsdDuration.DurationType.DayTimeDuration).ToTimeSpan(XsdDuration.DurationType.DayTimeDuration);
599
return new
XsdDuration
(value, XsdDuration.DurationType.Duration).ToTimeSpan(XsdDuration.DurationType.Duration);
695
return new
XsdDuration
(value, XsdDuration.DurationType.YearMonthDuration).ToTimeSpan(XsdDuration.DurationType.YearMonthDuration);
720
return new
XsdDuration
(value, XsdDuration.DurationType.DayTimeDuration).ToString(XsdDuration.DurationType.DayTimeDuration);
724
return new
XsdDuration
(value, XsdDuration.DurationType.Duration).ToString(XsdDuration.DurationType.Duration);
797
return new
XsdDuration
(value, XsdDuration.DurationType.YearMonthDuration).ToString(XsdDuration.DurationType.YearMonthDuration);
System\Xml\Schema\XsdDuration.cs (3)
106
this = new
XsdDuration
(isNegative, years, months, 0, 0, 0, 0, 0);
264
return new
XsdDuration
(IsNegative, years, months, days, hours, minutes, seconds, Nanoseconds);
454
result = new
XsdDuration
();
System\Xml\XmlConvert.cs (2)
747
return new
XsdDuration
(value).ToString();
1161
duration = new
XsdDuration
(s);
29 references to XsdDuration
System.Xml (29)
System\Xml\Schema\DataTypeImplementation.cs (8)
1744
XsdDuration
duration;
1745
exception =
XsdDuration
.TryParse(s,
XsdDuration
.DurationType.YearMonthDuration, out duration);
1750
exception = duration.TryToTimeSpan(
XsdDuration
.DurationType.YearMonthDuration, out timeSpanValue);
1782
XsdDuration
duration;
1783
exception =
XsdDuration
.TryParse(s,
XsdDuration
.DurationType.DayTimeDuration, out duration);
1787
exception = duration.TryToTimeSpan(
XsdDuration
.DurationType.DayTimeDuration, out timeSpanValue);
System\Xml\Schema\XmlValueConverter.cs (12)
595
return new XsdDuration(value,
XsdDuration
.DurationType.DayTimeDuration).ToTimeSpan(
XsdDuration
.DurationType.DayTimeDuration);
599
return new XsdDuration(value,
XsdDuration
.DurationType.Duration).ToTimeSpan(
XsdDuration
.DurationType.Duration);
695
return new XsdDuration(value,
XsdDuration
.DurationType.YearMonthDuration).ToTimeSpan(
XsdDuration
.DurationType.YearMonthDuration);
720
return new XsdDuration(value,
XsdDuration
.DurationType.DayTimeDuration).ToString(
XsdDuration
.DurationType.DayTimeDuration);
724
return new XsdDuration(value,
XsdDuration
.DurationType.Duration).ToString(
XsdDuration
.DurationType.Duration);
797
return new XsdDuration(value,
XsdDuration
.DurationType.YearMonthDuration).ToString(
XsdDuration
.DurationType.YearMonthDuration);
System\Xml\Schema\XsdDuration.cs (6)
137
XsdDuration
result;
229
public
XsdDuration
Normalize() {
443
internal static Exception TryParse(string s, out
XsdDuration
result) {
448
internal static Exception TryParse(string s, DurationType durationType, out
XsdDuration
result) {
605
if ((parts & ~(
XsdDuration
.Parts.HasYears |
XsdDuration
.Parts.HasMonths)) != 0)
System\Xml\XmlConvert.cs (3)
1157
XsdDuration
duration;
1175
XsdDuration
duration;
1178
exception =
XsdDuration
.TryParse(s, out duration);