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

◆ Calendar

Calendar System.Globalization.DateTimeFormatInfo.Calendar
getset

Definition at line 184 of file DateTimeFormatInfo.cs.

185 {
186 get
187 {
188 return calendar;
189 }
190 [MemberNotNull("calendar")]
191 set
192 {
193 if (IsReadOnly)
194 {
195 throw new InvalidOperationException(SR.InvalidOperation_ReadOnly);
196 }
197 if (value == null)
198 {
199 throw new ArgumentNullException("value");
200 }
201 if (value == calendar)
202 {
203 return;
204 }
205 for (int i = 0; i < OptionalCalendars.Length; i++)
206 {
207 if (OptionalCalendars[i] == value.ID)
208 {
209 if (calendar != null)
210 {
211 m_eraNames = null;
212 m_abbrevEraNames = null;
214 monthDayPattern = null;
215 dayNames = null;
216 abbreviatedDayNames = null;
218 monthNames = null;
220 genitiveMonthNames = null;
222 leapYearMonthNames = null;
223 formatFlags = DateTimeFormatFlags.NotInitialized;
225 allLongDatePatterns = null;
228 longDatePattern = null;
229 shortDatePattern = null;
230 yearMonthPattern = null;
231 fullDateTimePattern = null;
234 dateSeparator = null;
236 }
237 calendar = value;
239 return;
240 }
241 }
242 throw new ArgumentOutOfRangeException("value", value, SR.Argument_InvalidCalendar);
243 }
244 }
virtual CalendarId ID
Definition Calendar.cs:19

Referenced by System.Globalization.CultureInfo.Clone(), System.DateTimeParse.DoStrictParse(), System.DateTimeParse.MatchEraName(), System.DateTimeParse.ParseJapaneseEraStart(), and System.DateTimeParse.TryParse().