diff options
author | jfrijters <jfrijters> | 2010-04-18 12:39:20 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2010-04-18 12:39:20 +0400 |
commit | 6a1ca8dae9fe0ea6ec172d85de8f0f6d0e119a01 (patch) | |
tree | 91eb8f7d518f19e91fb234afaf20454f1e8d1418 /reflect/Util.cs | |
parent | a2dd1781877bce23dcda08c4c85b37cdb91c6cf2 (diff) |
Introduced Empty<T> to cache zero length arrays.
Diffstat (limited to 'reflect/Util.cs')
-rw-r--r-- | reflect/Util.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/reflect/Util.cs b/reflect/Util.cs index a7095595..a27ed2ba 100644 --- a/reflect/Util.cs +++ b/reflect/Util.cs @@ -26,6 +26,11 @@ using System.Collections.Generic; namespace IKVM.Reflection { + static class Empty<T> + { + internal static readonly T[] Array = new T[0]; + } + static class Util { internal static Type[] Copy(Type[] array) |