com.calitha.commons.IntegerList.Repeat C# (CSharp) Méthode

Repeat() public static méthode

Returns an IntegerList whose elements are copies of the specified value.
public static Repeat ( int value, int count ) : IntegerList
value int The value to copy multiple times in the list.
count int The number of times value should be copied.
Résultat IntegerList
		public static IntegerList Repeat(int value, int count)
		{
			IntegerList result = new IntegerList();
			for (int i=0; i < count; i++)
			{
				result.Add(value);
			}
			return result;
		}