37 references to DurationType
dotnet-svcutil-lib (37)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (4)
1961
exception = XsdDuration.TryParse(s, XsdDuration.
DurationType
.YearMonthDuration, out duration);
1966
exception = duration.TryToTimeSpan(XsdDuration.
DurationType
.YearMonthDuration, out timeSpanValue);
2000
exception = XsdDuration.TryParse(s, XsdDuration.
DurationType
.DayTimeDuration, out duration);
2004
exception = duration.TryToTimeSpan(XsdDuration.
DurationType
.DayTimeDuration, out timeSpanValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (12)
626
return new XsdDuration(value, XsdDuration.
DurationType
.DayTimeDuration).ToTimeSpan(XsdDuration.
DurationType
.DayTimeDuration);
631
return new XsdDuration(value, XsdDuration.
DurationType
.Duration).ToTimeSpan(XsdDuration.
DurationType
.Duration);
748
return new XsdDuration(value, XsdDuration.
DurationType
.YearMonthDuration).ToTimeSpan(XsdDuration.
DurationType
.YearMonthDuration);
778
return new XsdDuration(value, XsdDuration.
DurationType
.DayTimeDuration).ToString(XsdDuration.
DurationType
.DayTimeDuration);
783
return new XsdDuration(value, XsdDuration.
DurationType
.Duration).ToString(XsdDuration.
DurationType
.Duration);
872
return new XsdDuration(value, XsdDuration.
DurationType
.YearMonthDuration).ToString(XsdDuration.
DurationType
.YearMonthDuration);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (21)
73
public XsdDuration(TimeSpan timeSpan) : this(timeSpan,
DurationType
.Duration)
81
public XsdDuration(TimeSpan timeSpan,
DurationType
durationType)
99
if (durationType ==
DurationType
.YearMonthDuration)
115
Debug.Assert(durationType ==
DurationType
.Duration || durationType ==
DurationType
.DayTimeDuration);
135
public XsdDuration(string s) : this(s,
DurationType
.Duration)
143
public XsdDuration(string s,
DurationType
durationType)
300
return ToTimeSpan(
DurationType
.Duration);
307
public TimeSpan ToTimeSpan(
DurationType
durationType)
320
return TryToTimeSpan(
DurationType
.Duration, out result);
323
internal Exception TryToTimeSpan(
DurationType
durationType, out TimeSpan result)
334
if (durationType !=
DurationType
.DayTimeDuration)
341
if (durationType !=
DurationType
.YearMonthDuration)
396
return ToString(
DurationType
.Duration);
403
internal string ToString(
DurationType
durationType)
413
if (durationType !=
DurationType
.DayTimeDuration)
428
if (durationType !=
DurationType
.YearMonthDuration)
496
return TryParse(s,
DurationType
.Duration, out result);
499
internal static Exception TryParse(string s,
DurationType
durationType, out XsdDuration result)
663
if (durationType ==
DurationType
.DayTimeDuration)
668
else if (durationType ==
DurationType
.YearMonthDuration)