forked from jasder/antlr
Add Arrays.Fill
This commit is contained in:
parent
7becde5c7b
commit
4b92e747a4
|
@ -15,5 +15,11 @@
|
|||
{
|
||||
return array;
|
||||
}
|
||||
|
||||
public static void Fill<T>(T[] array, T value)
|
||||
{
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
array[i] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue