About 112,000 results
Open links in new tab
  1. Array Size (Length) in C# - Stack Overflow

    May 16, 2010 · How can I determine size of an array (length / number of items) in C#?

  2. How to get the length of row/column of multidimensional array in …

    20 Have you looked at the properties of an Array? Length gives you the length of the array (total number of cells). GetLength(n) gives you the number of cells in the specified dimension …

  3. c# - What is the difference between Array.GetLength () and …

    Mar 18, 2016 · How do you use the Array.GetLength function in C#? What is the difference between the Length property and the GetLength function?

  4. c# - Differences between Array.Length and Array.Count () - Stack …

    Dec 3, 2012 · Possible Duplicate: count vs length vs size in a collection Array.Length vs Array.Count I declared this array: int[] misInts = new Int[someNumber]; /* make some happy …

  5. Array of an unknown length in C# - Stack Overflow

    Mar 1, 2009 · I've just started learning C# and in the introduction to arrays they showed how to establish a variable as an array but is seems that one must specify the length of the array at …

  6. c# - If (Array.Length == 0) - Stack Overflow

    Jul 9, 2010 · If an array is empty, it looks like you can't check it's length using ".length". What's the best way to check if an array is empty?

  7. c# - How do you get the width and height of a multi-dimensional …

    I have an array defined: int [,] ary; // ... int nArea = ary.Length; // x*y or total area This is all well and good, but I need to know how wide this array is in the x and y dimensions individually.

  8. c# - What is the Maximum Size that an Array can hold? - Stack …

    Sep 8, 2009 · System.Int32.MaxValue Assuming you mean System.Array, ie. any normally defined array (int[], etc). This is the maximum number of values the array can hold. The size of …

  9. .NET array - difference between "Length", "Count()" and "Rank"

    Jul 11, 2011 · Length is the property of an array object and using it is the most effective way to determine the count of elements in the array (Array.Length in MSDN documentation). Count() …

  10. How to set array length in c# dynamically - Stack Overflow

    How to set array length in c# dynamically Asked 16 years, 8 months ago Modified 9 years, 1 month ago Viewed 230k times