About 77,800 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. c# - change array size - Stack Overflow

    Jan 30, 2011 · Is it possible to change an array size after declaration? If not, is there any alternative to arrays? I do not want to create an array with a size of 1000, but I do not know the …

  3. How do I initialize an empty array in C#? - Stack Overflow

    Jan 4, 2012 · Is it possible to create an empty array without specifying the size? For example, I created: String[] a = new String[5]; Can we create the above string array without the size?

  4. 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 …

  5. c# - How do I find the size of a 2D array? - Stack Overflow

    Nov 5, 2010 · 92 This question already has answers here: How do you get the width and height of a multi-dimensional array? [duplicate] (6 answers)

  6. Can you define an array with a pre-specified size in C#?

    Array lengths are not part of the type signature, so the type of an array of length 2 is the same as the type of an array of length 3. The only type is int[] meaning int array of any length. This may …

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

    24 If you don't want to use a List, ArrayList, or other dynamically-sized collection and then convert to an array (that's the method I'd recommend, by the way), then you'll have to allocate the …

  8. C# array within a struct - Stack Overflow

    The fixed sized buffer is working for simple types, but one of my block reads contains an array of 22 records of 92 bytes each. The record contains 18 fields. "Fixed size buffer type must be …

  9. How do I declare an array of strings with an unknown size?

    How is an array of strings where you do not know the array size in C#/.NET declared?

  10. c# - How to initialize a multidimensional array - Stack Overflow

    Jul 14, 2022 · In order to get the dimension size in jaggad array, you can simply get the lenth of the array, but keep in mind that if the array is actually jagged, you will have different sizes for …