OutputArray Create is a method in C# used to generate an output array with specified length and default values. This method is part of the System namespace in .NET Framework.
Example 1: Create an array of length 5 with default values of 0.
int[] arr1 = OutputArray.Create(5);
Example 2: Create a string array of length 3 with default values of "empty".
string[] arr2 = OutputArray.Create(3, "empty");
Example 3: Create an array of double with length 7 and default value of Pi.
double[] arr3 = OutputArray.Create(7, Math.PI);
Note: OutputArray.Create is not a standard method in C#, instead it is a custom extension method. This method is included in the MoreLINQ package library.
C# (CSharp) OutputArray.Create - 30 examples found. These are the top rated real world C# (CSharp) examples of OutputArray.Create extracted from open source projects. You can rate examples to help us improve the quality of examples.