ArrayHelper.Fill(..)
parent
8f39f12549
commit
088453675f
|
@ -0,0 +1,13 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
|
||||||
|
namespace org.niclasundharald.engine
|
||||||
|
{
|
||||||
|
public static class ArrayHelper
|
||||||
|
{
|
||||||
|
public static void Fill<T>(this T[] array,T value){
|
||||||
|
for (int n=0;n<array.Length;n++)
|
||||||
|
array[n] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue