-Refactored buffer pool

This commit is contained in:
James Newton-King
2015-12-13 15:40:37 +13:00
parent 4e2acac33a
commit 815b283e58
48 changed files with 187 additions and 186 deletions
+4 -4
View File
@@ -177,7 +177,7 @@ namespace Newtonsoft.Json
{
if (value < DateTimeZoneHandling.Local || value > DateTimeZoneHandling.RoundtripKind)
{
throw new ArgumentOutOfRangeException("value");
throw new ArgumentOutOfRangeException(nameof(value));
}
_dateTimeZoneHandling = value;
@@ -200,7 +200,7 @@ namespace Newtonsoft.Json
#endif
)
{
throw new ArgumentOutOfRangeException("value");
throw new ArgumentOutOfRangeException(nameof(value));
}
_dateParseHandling = value;
@@ -217,7 +217,7 @@ namespace Newtonsoft.Json
{
if (value < FloatParseHandling.Double || value > FloatParseHandling.Decimal)
{
throw new ArgumentOutOfRangeException("value");
throw new ArgumentOutOfRangeException(nameof(value));
}
_floatParseHandling = value;
@@ -243,7 +243,7 @@ namespace Newtonsoft.Json
{
if (value <= 0)
{
throw new ArgumentException("Value must be positive.", "value");
throw new ArgumentException("Value must be positive.", nameof(value));
}
_maxDepth = value;