ArrayHelper.Fill(..)

audio-improve-offer
Harald Christian Joachim Wolff 2017-05-06 12:34:38 +02:00
parent 8f39f12549
commit 088453675f
1 changed files with 13 additions and 0 deletions

View File

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