About 266,000 results
Open links in new tab
  1. c# - Options for initializing a string array - Stack Overflow

    Sep 3, 2013 · Options for initializing a string array [duplicate] Asked 16 years, 2 months ago Modified 12 years, 3 months ago Viewed 244k times

  2. 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? String[] array = new String[]; // this does not work

  3. c# - Convert an array to string - Stack Overflow

    What version of the .NET framework are you using? The suggested String.Join () overload was added in .NET 4, before which the method only took an Array.

  4. c# - convert string array to string - Stack Overflow

    Mar 30, 2017 · string result = string.Join(",", test); If you have to perform this on a string array with hundereds of elements than string.Join () is better by performace point of view.

  5. c# - How can I declare a two dimensional string array? - Stack …

    Oct 3, 2019 · string[,] Tablero = new string[3,3]; This will create you a matrix-like array where all rows have the same length. The array in your sample is a so-called jagged array, i.e. an array …

  6. c# - Array of Arrays - Stack Overflow

    Jun 19, 2011 · How do you create an array of arrays in C#? I have read about creating jagged arrays but I'm not sure if thats the best way of going about it. I was wanting to achieve …

  7. c# - Is string actually an array of chars or does it just have an ...

    Nov 5, 2019 · A string object contains a continuous block of characers, just like an array of characters, but the string object neither is, nor contains an array object. The compiler knows …

  8. c# - How to add a string to a string [] array? There's no .Add …

    You can't add items to an array, since it has fixed length. What you're looking for is a List<string>, which can later be turned to an array using list.ToArray(), e.g.

  9. Using C# to check if string contains a string in string array

    May 26, 2010 · I want to use C# to check if a string value contains a word in a string array. For example: string stringToCheck = "text1text2text3"; string [] stringArray = { "text1", "

  10. c# - Merging two arrays in .NET - Stack Overflow

    Sep 12, 2008 · Is there a built in function in .NET 2.0 that will take two arrays and merge them into one array? The arrays are both of the same type. I'm getting these arrays from a widely used …