About 593,000 results
Open links in new tab
  1. c# - How to add a string to a string [] array? There's no ...

    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.

  2. Append values to existing array - Microsoft Q&A

    Apr 6, 2023 · Hi. I am looping through the contents using a for each loop and storing the value in string array. Even though the loop is going more than thrice, only the last loop data is getting …

  3. How to Append to a String Array in C# - Web Dev Tutor

    Jun 25, 2024 · Appending elements to a string array in C# is a common operation that can be achieved using various methods. In this guide, we will explore different approaches to …

  4. How to Add String to an Array in C# - Delft Stack

    Feb 16, 2024 · This tutorial will discuss methods to add new strings to a wholly filled array in C#. Add String to Array With the List.Add() Method in C# Unfortunately, there is no built-in method …

  5. C# Arrays - W3Schools

    Other Ways to Create an Array If you are familiar with C#, you might have seen arrays created with the new keyword, and perhaps you have seen arrays with a specified size as well. In C#, …

  6. C# | Arrays of Strings - GeeksforGeeks

    Jul 11, 2025 · Here, string array and arrays of strings both are same term. For Example, if you want to store the name of students of a class then you can use the arrays of strings.

  7. How to Add Values to a String Array in C#? - AspDotnetHelp.com

    Sep 15, 2023 · A string array in C# is an array that stores a collection of string data type elements. However, unlike dynamic collections like List, arrays in C# are of fixed size, …

  8. 6 Effective Ways To Concatenate Strings In C# - C# Corner

    The code examples demonstrate various methods to concatenate strings, insert strings, append strings, and merge strings using the C# String class and its methods.