11 references to Duration
System.Xml (11)
System\Xml\Schema\XmlValueConverter.cs (4)
599
return new XsdDuration(value, XsdDuration.DurationType.
Duration
).ToTimeSpan(XsdDuration.DurationType.
Duration
);
724
return new XsdDuration(value, XsdDuration.DurationType.
Duration
).ToString(XsdDuration.DurationType.
Duration
);
System\Xml\Schema\XsdDuration.cs (7)
74
public XsdDuration(TimeSpan timeSpan) : this(timeSpan, DurationType.
Duration
) {
109
Debug.Assert(durationType == DurationType.
Duration
|| durationType == DurationType.DayTimeDuration);
129
public XsdDuration(string s) : this(s, DurationType.
Duration
) {
273
return ToTimeSpan(DurationType.
Duration
);
291
return TryToTimeSpan(DurationType.
Duration
, out result);
356
return ToString(DurationType.
Duration
);
444
return TryParse(s, DurationType.
Duration
, out result);