-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
@@ -784,7 +784,7 @@ If attributes are not mentioned, default values are used in each case.
json = SerializeBinaryFormatter(value);
break;
default:
throw new ArgumentOutOfRangeException("method");
throw new ArgumentOutOfRangeException(nameof(method));
}
return json;
@@ -991,7 +991,7 @@ If attributes are not mentioned, default values are used in each case.
case SerializeMethod.DataContractJsonSerializer:
return DeserializeDataContractJson<T>((string)json);
default:
throw new ArgumentOutOfRangeException("method");
throw new ArgumentOutOfRangeException(nameof(method));
}
}