Change constraint on DuplicatePropertyNameHandling (#2016)
This commit is contained in:
committed by
James Newton-King
parent
793c9a0a3d
commit
24ddbaf95b
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user