Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit d323ef5

Browse files
committed
Add new common empty Types
1 parent 534fb38 commit d323ef5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ServiceStack.Text/TypeConstants.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
23
using System.Reflection;
34

45
namespace ServiceStack.Text
@@ -8,16 +9,22 @@ public static class TypeConstants
89
public static readonly string[] EmptyStringArray = new string[0];
910
public static readonly long[] EmptyLongArray = new long[0];
1011
public static readonly int[] EmptyIntArray = new int[0];
12+
public static readonly bool[] EmptyBoolArray = new bool[0];
1113
public static readonly byte[] EmptyByteArray = new byte[0];
1214
public static readonly object[] EmptyObjectArray = new object[0];
15+
public static readonly Type[] EmptyTypeArray = new Type[0];
1316
public static readonly FieldInfo[] EmptyFieldInfoArray = new FieldInfo[0];
1417
public static readonly PropertyInfo[] EmptyPropertyInfoArray = new PropertyInfo[0];
1518

19+
public static readonly byte[][] EmptyByteArrayArray = new byte[0][];
20+
1621
public static readonly List<string> EmptyStringList = new List<string>(0);
1722
public static readonly List<long> EmptyLongList = new List<long>(0);
1823
public static readonly List<int> EmptyIntList = new List<int>(0);
24+
public static readonly List<bool> EmptyBoolList = new List<bool>(0);
1925
public static readonly List<byte> EmptyByteList = new List<byte>(0);
2026
public static readonly List<object> EmptyObjectList = new List<object>(0);
27+
public static readonly List<Type> EmptyTypeList = new List<Type>(0);
2128
public static readonly List<FieldInfo> EmptyFieldInfoList = new List<FieldInfo>(0);
2229
public static readonly List<PropertyInfo> EmptyPropertyInfoList = new List<PropertyInfo>(0);
2330
}

0 commit comments

Comments
 (0)