12 references to Duration
System.Private.Xml (12)
System\Xml\Schema\XmlValueConverter.cs (4)
545
return new XsdDuration(value, XsdDuration.DurationType.
Duration
).ToTimeSpan(XsdDuration.DurationType.
Duration
);
698
return new XsdDuration(value, XsdDuration.DurationType.
Duration
).ToString(XsdDuration.DurationType.
Duration
);
System\Xml\Schema\XsdDuration.cs (8)
75
public XsdDuration(TimeSpan timeSpan) : this(timeSpan, DurationType.
Duration
)
117
Debug.Assert(durationType == DurationType.
Duration
|| durationType == DurationType.DayTimeDuration);
137
public XsdDuration(string s) : this(s, DurationType.
Duration
)
239
return ToTimeSpan(DurationType.
Duration
);
260
return TryToTimeSpan(DurationType.
Duration
, out result);
336
return ToString(DurationType.
Duration
);
352
public bool TryFormat(Span<char> destination, out int charsWritten, DurationType durationType = DurationType.
Duration
)
449
return TryParse(s, DurationType.
Duration
, out result);