Add Arrays.AsList

This commit is contained in:
Sam Harwell 2013-02-16 13:58:52 -06:00
parent 0b10ff1113
commit bfbcc2816c
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
namespace Sharpen namespace Sharpen
{ {
using System; using System;
using System.Collections.Generic;
internal static class Arrays internal static class Arrays
{ {
@ -9,5 +10,10 @@
Array.Resize(ref array, newSize); Array.Resize(ref array, newSize);
return array; return array;
} }
public static IList<T> AsList<T>(params T[] array)
{
return array;
}
} }
} }