About 3,610,000 results
Open links in new tab
  1. C# | Arrays of Strings - GeeksforGeeks

    Jul 11, 2025 · Accessing Arrays of Strings Elements: At the time of initialization, we can assign the value. But, we can also assign the value of array using its index randomly after the …

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

    Dec 14, 2024 · Important In the preceding example, even though the type is string[], an array of non-nullable strings, the default value for each element is null. The best way to initialize an …

  3. C# String Array Initialization: The Definitive Guide You Need!

    Aug 29, 2025 · Understanding C# string array initialization is fundamental for any developer working with .NET. This process involves declaring and assigning values to a collection of …

  4. Array of Strings in C# - Delft Stack

    Oct 12, 2023 · This guide demonstrates declaring and initializing an array of strings in C#.

  5. String Array in C# | Learn Initialization of String Array and ...

    Mar 17, 2023 · Guide to the String Array in C#. Here we discuss the basic concept, Declaration Syntax, Initialization of String Array along with examples.

  6. C# Array Initialization: All Possible Syntax Options ...

    Nov 18, 2025 · Arrays are a fundamental data structure in C#, used to store fixed-size collections of elements of the same type (or a derived type). Whether you’re working with simple lists of …

  7. Initializing an Array in C# - DEV Community

    May 14, 2024 · string[] array = new[] { "A", "B" }; This is similar to the second example but it uses the new [] syntax. This syntax allows the compiler to infer the type of the array elements based …

  8. How to Initialize an Array in C#: A Complete Step-by-Step Guide

    Dec 9, 2025 · Arrays are fundamental data structures in C# that allow you to store multiple values of the same type in a single variable. Whether you’re working with a list of numbers, strings, or …