Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ XsdDuration() [1/5]

System.Xml.Schema.XsdDuration.XsdDuration ( bool isNegative,
int years,
int months,
int days,
int hours,
int minutes,
int seconds,
int nanoseconds )
inline

Definition at line 55 of file XsdDuration.cs.

56 {
57 if (years < 0)
58 {
59 throw new ArgumentOutOfRangeException("years");
60 }
61 if (months < 0)
62 {
63 throw new ArgumentOutOfRangeException("months");
64 }
65 if (days < 0)
66 {
67 throw new ArgumentOutOfRangeException("days");
68 }
69 if (hours < 0)
70 {
71 throw new ArgumentOutOfRangeException("hours");
72 }
73 if (minutes < 0)
74 {
75 throw new ArgumentOutOfRangeException("minutes");
76 }
77 if (seconds < 0)
78 {
79 throw new ArgumentOutOfRangeException("seconds");
80 }
82 {
83 throw new ArgumentOutOfRangeException("nanoseconds");
84 }
85 _years = years;
87 _days = days;
88 _hours = hours;
92 if (isNegative)
93 {
94 _nanoseconds |= 2147483648u;
95 }
96 }

References System.Xml.Schema.XsdDuration._days, System.Xml.Schema.XsdDuration._hours, System.Xml.Schema.XsdDuration._minutes, System.Xml.Schema.XsdDuration._months, System.Xml.Schema.XsdDuration._nanoseconds, System.Xml.Schema.XsdDuration._seconds, System.Xml.Schema.XsdDuration._years, and System.Xml.Dictionary.

Referenced by System.Xml.Schema.XsdDuration.XsdDuration().