Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Newtonsoft.Json/Utilities/EnumUtils.cs')
-rw-r--r--Src/Newtonsoft.Json/Utilities/EnumUtils.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Newtonsoft.Json/Utilities/EnumUtils.cs b/Src/Newtonsoft.Json/Utilities/EnumUtils.cs
index 1d904f2..57e034f 100644
--- a/Src/Newtonsoft.Json/Utilities/EnumUtils.cs
+++ b/Src/Newtonsoft.Json/Utilities/EnumUtils.cs
@@ -103,7 +103,7 @@ namespace Newtonsoft.Json.Utilities
public static IList<object> GetValues(Type enumType)
{
- if (!enumType.IsEnum)
+ if (!enumType.IsEnum())
throw new ArgumentException("Type '" + enumType.Name + "' is not an enum.");
List<object> values = new List<object>();
@@ -123,7 +123,7 @@ namespace Newtonsoft.Json.Utilities
public static IList<string> GetNames(Type enumType)
{
- if (!enumType.IsEnum)
+ if (!enumType.IsEnum())
throw new ArgumentException("Type '" + enumType.Name + "' is not an enum.");
List<string> values = new List<string>();