About 634,000 results
Open links in new tab
  1. C# Multidimensional Arrays - W3Schools

    Two-Dimensional Arrays. To create a 2D array, add each array within its own set of curly braces, and insert a comma (,) inside the square brackets:

  2. c# - Multidimensional Array [] [] vs [,] - Stack Overflow

    Sep 24, 2012 · double[,] is a 2d array (matrix) while double[][] is an array of arrays (jagged arrays) and the syntax is: double[][] ServicePoint = new double[10][];

  3. C# Multidimensional Arrays - GeeksforGeeks

    Jan 15, 2025 · Two-Dimensional Array is the first step to make an array multidimensional. 2-D array can be interpreted as a collection of multiple One-Dimensional Arrays. The above syntax …

  4. c# - Define a double array without a fixed size? - Stack Overflow

    Jun 22, 2009 · The List<T> class uses an array in the background and redefines it when it runs out of space: List<double> items = new List<double>(); items.Add(1.23); items.Add(4.56); …

  5. Creating an array of two-dimensional arrays in C#

    May 7, 2017 · There's a simple answer to this. Use instances of the "System.Drawing.Point" class. Create a "Point" array to store coordinates. To create the array: Point[] points = new …

  6. How to Create a Double Array in C# - Web Dev Tutor

    Jul 22, 2024 · To create a double array in C#, you can use the following syntax: double[,] doubleArray = new double[rowCount, columnCount]; In this example, rowCount represents the …

  7. 2D Arrays in C# with Examples - Dot Net Tutorials

    Mar 23, 2019 · The method for creating a rectangular two-dimensional array is as follows: int[,] A = new int[3,4]; If we created it like this, then the 2D array is created with 3 rows and 4 columns …

  8. The array reference type - C# reference | Microsoft Learn

    Dec 14, 2024 · The following code shows a partial declaration of a print method that accepts a two-dimensional array as its argument. You can initialize and pass a new array in one step, as …

  9. 2D Arrays in C#: How To Use Them - ByteHide

    Dec 15, 2023 · In C#, 2D arrays are no different. Let’s explore how we can apply various methods to twist and turn our 2D arrays as per our demand. Methods of Manipulating C# Double Array. …

  10. C# Multidimensional Array (With Examples) - Programiz

    In a multidimensional array, each element of the array is also an array. In this tutorial, we will learn about multidimensional arrays in C# using the example of two-dimensional arrays.

  11. Some results have been removed