Merge pull request #1151 from JonHanna/singleton_empty_array
Use singleton for zero-element arrays.
This commit is contained in:
@@ -90,7 +90,7 @@ namespace Newtonsoft.Json.Utilities
|
||||
#if !(PORTABLE40 || PORTABLE)
|
||||
EmptyTypes = Type.EmptyTypes;
|
||||
#else
|
||||
EmptyTypes = new Type[0];
|
||||
EmptyTypes = CollectionUtils.ArrayEmpty<Type>();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user