diff options
Diffstat (limited to 'src/mscorlib/corefx/System/Globalization/TaiwanCalendar.cs')
-rw-r--r-- | src/mscorlib/corefx/System/Globalization/TaiwanCalendar.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mscorlib/corefx/System/Globalization/TaiwanCalendar.cs b/src/mscorlib/corefx/System/Globalization/TaiwanCalendar.cs index 89b2e4a41d..36edd5b2fd 100644 --- a/src/mscorlib/corefx/System/Globalization/TaiwanCalendar.cs +++ b/src/mscorlib/corefx/System/Globalization/TaiwanCalendar.cs @@ -83,6 +83,15 @@ namespace System.Globalization } } + [System.Runtime.InteropServices.ComVisible(false)] + public override CalendarAlgorithmType AlgorithmType + { + get + { + return CalendarAlgorithmType.SolarCalendar; + } + } + // Return the type of the Taiwan calendar. // @@ -260,7 +269,7 @@ namespace System.Globalization { if (year <= 0) { - throw new ArgumentOutOfRangeException("year", + throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_NeedPosNum); } Contract.EndContractBlock(); @@ -268,7 +277,7 @@ namespace System.Globalization if (year > helper.MaxYear) { throw new ArgumentOutOfRangeException( - "year", + nameof(year), String.Format( CultureInfo.CurrentCulture, SR.ArgumentOutOfRange_Range, |