Merge pull request #1151 from JonHanna/singleton_empty_array

Use singleton for zero-element arrays.
This commit is contained in:
James Newton-King
2017-01-09 15:11:14 +13:00
committed by GitHub
11 changed files with 69 additions and 39 deletions
@@ -90,7 +90,7 @@ namespace Newtonsoft.Json.Utilities
#if !(PORTABLE40 || PORTABLE)
EmptyTypes = Type.EmptyTypes;
#else
EmptyTypes = new Type[0];
EmptyTypes = CollectionUtils.ArrayEmpty<Type>();
#endif
}