Answers for "fill all of an array with the same value c#"

C#
1

fill all array c# with same value

public static void Populate<T>(this T[] arr, T value ) {
  for ( int i = 0; i < arr.Length;i++ ) {
    arr[i] = value;
  }
}
Posted by: Guest on May-01-2021

Code answers related to "fill all of an array with the same value c#"

C# Answers by Framework

Browse Popular Code Answers by Language