10 instantiations of XsdDuration
System.Private.Xml (10)
System\Xml\Schema\XmlValueConverter.cs (6)
540return new XsdDuration(value, XsdDuration.DurationType.DayTimeDuration).ToTimeSpan(XsdDuration.DurationType.DayTimeDuration); 545return new XsdDuration(value, XsdDuration.DurationType.Duration).ToTimeSpan(XsdDuration.DurationType.Duration); 663return new XsdDuration(value, XsdDuration.DurationType.YearMonthDuration).ToTimeSpan(XsdDuration.DurationType.YearMonthDuration); 693return new XsdDuration(value, XsdDuration.DurationType.DayTimeDuration).ToString(XsdDuration.DurationType.DayTimeDuration); 698return new XsdDuration(value, XsdDuration.DurationType.Duration).ToString(XsdDuration.DurationType.Duration); 787return new XsdDuration(value, XsdDuration.DurationType.YearMonthDuration).ToString(XsdDuration.DurationType.YearMonthDuration);
System\Xml\Schema\XsdDuration.cs (1)
113this = new XsdDuration(isNegative, years, months, 0, 0, 0, 0, 0);
System\Xml\XmlConvert.cs (3)
688return new XsdDuration(value).ToString(); 1116duration = new XsdDuration(s); 1751return new XsdDuration(value).TryFormat(destination, out charsWritten);
28 references to XsdDuration
System.Private.Xml (28)
System\Xml\Schema\DataTypeImplementation.cs (8)
1919XsdDuration duration; 1920exception = XsdDuration.TryParse(s, XsdDuration.DurationType.YearMonthDuration, out duration); 1925exception = duration.TryToTimeSpan(XsdDuration.DurationType.YearMonthDuration, out timeSpanValue); 1958XsdDuration duration; 1959exception = XsdDuration.TryParse(s, XsdDuration.DurationType.DayTimeDuration, out duration); 1963exception = duration.TryToTimeSpan(XsdDuration.DurationType.DayTimeDuration, out timeSpanValue);
System\Xml\Schema\XmlValueConverter.cs (12)
540return new XsdDuration(value, XsdDuration.DurationType.DayTimeDuration).ToTimeSpan(XsdDuration.DurationType.DayTimeDuration); 545return new XsdDuration(value, XsdDuration.DurationType.Duration).ToTimeSpan(XsdDuration.DurationType.Duration); 663return new XsdDuration(value, XsdDuration.DurationType.YearMonthDuration).ToTimeSpan(XsdDuration.DurationType.YearMonthDuration); 693return new XsdDuration(value, XsdDuration.DurationType.DayTimeDuration).ToString(XsdDuration.DurationType.DayTimeDuration); 698return new XsdDuration(value, XsdDuration.DurationType.Duration).ToString(XsdDuration.DurationType.Duration); 787return new XsdDuration(value, XsdDuration.DurationType.YearMonthDuration).ToString(XsdDuration.DurationType.YearMonthDuration);
System\Xml\Schema\XsdDuration.cs (5)
147XsdDuration result; 447internal static Exception? TryParse(string s, out XsdDuration result) 452internal static Exception? TryParse(string s, DurationType durationType, out XsdDuration result) 622if ((parts & ~(XsdDuration.Parts.HasYears | XsdDuration.Parts.HasMonths)) != 0)
System\Xml\XmlConvert.cs (3)
1111XsdDuration duration; 1131XsdDuration duration; 1134exception = XsdDuration.TryParse(s, out duration);