diff --git a/Src/Newtonsoft.Json/Linq/JsonLoadSettings.cs b/Src/Newtonsoft.Json/Linq/JsonLoadSettings.cs index 0a450d8a..64aba4c1 100644 --- a/Src/Newtonsoft.Json/Linq/JsonLoadSettings.cs +++ b/Src/Newtonsoft.Json/Linq/JsonLoadSettings.cs @@ -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 } } } -} \ No newline at end of file +}