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