Add Arrays.Fill

This commit is contained in:
Sam Harwell 2013-02-18 08:21:15 -06:00
parent 7becde5c7b
commit 4b92e747a4
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}
}
}