Merge pull request #1151 from JonHanna/singleton_empty_array
Use singleton for zero-element arrays.
This commit is contained in:
@@ -538,7 +538,7 @@ namespace Newtonsoft.Json
|
||||
Guid g;
|
||||
if (s.Length == 0)
|
||||
{
|
||||
data = new byte[0];
|
||||
data = CollectionUtils.ArrayEmpty<byte>();
|
||||
}
|
||||
else if (ConvertUtils.TryConvertGuid(s, out g))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user