Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2010-04-18 12:39:20 +0400
committerjfrijters <jfrijters>2010-04-18 12:39:20 +0400
commit6a1ca8dae9fe0ea6ec172d85de8f0f6d0e119a01 (patch)
tree91eb8f7d518f19e91fb234afaf20454f1e8d1418 /reflect/Util.cs
parenta2dd1781877bce23dcda08c4c85b37cdb91c6cf2 (diff)
Introduced Empty<T> to cache zero length arrays.
Diffstat (limited to 'reflect/Util.cs')
-rw-r--r--reflect/Util.cs5
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)