[]
Returns a CultureInfo object with the specified calendar applied.
public static CultureInfo SetCalendar(this CultureInfo culture, string calendarName)
Type | Name | Description |
---|---|---|
CultureInfo | culture | The original culture. |
string | calendarName | The name of the calendar to apply. |
Type | Description |
---|---|
CultureInfo | A CultureInfo object with the specified calendar. |
Type | Condition |
---|---|
ArgumentException | Thrown when the specified calendar name is invalid. |