Change constraint on DuplicatePropertyNameHandling (#2016)

This commit is contained in:
Marta Krzyk
2019-03-30 17:10:57 +13:00
committed by James Newton-King
parent 793c9a0a3d
commit 24ddbaf95b
+2 -2
View File
@@ -69,7 +69,7 @@ namespace Newtonsoft.Json.Linq
get => _duplicatePropertyNameHandling;
set
{
if (value < DuplicatePropertyNameHandling.Ignore || value > DuplicatePropertyNameHandling.Error)
if (value < DuplicatePropertyNameHandling.Replace || value > DuplicatePropertyNameHandling.Error)
{
throw new ArgumentOutOfRangeException(nameof(value));
}
@@ -78,4 +78,4 @@ namespace Newtonsoft.Json.Linq
}
}
}
}
}