forked from jasder/antlr
Add Arrays.AsList
This commit is contained in:
parent
0b10ff1113
commit
bfbcc2816c
|
@ -1,6 +1,7 @@
|
|||
namespace Sharpen
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
internal static class Arrays
|
||||
{
|
||||
|
@ -9,5 +10,10 @@
|
|||
Array.Resize(ref array, newSize);
|
||||
return array;
|
||||
}
|
||||
|
||||
public static IList<T> AsList<T>(params T[] array)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue