About 35,200 results
Open links in new tab
  1. C# Arrays - W3Schools

    Create an Array Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value. To declare an array, define the variable type with square brackets:

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

    Jan 20, 2026 · You can store multiple variables of the same type in an array data structure. You declare an array by specifying the type of its elements. If you want the array to store elements of any type, …

  3. Arrays in C# - GeeksforGeeks

    Apr 20, 2026 · Array is a reference type so the new keyword used to create an instance of the array. We can assign initialize individual array elements, with the help of the index.

  4. c# - All possible array initialization syntaxes - Stack Overflow

    What are all the array initialization syntaxes that are possible with C#?

  5. Array Class (System) | Microsoft Learn

    Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.

  6. How do you initialize an array in C#? - Stack Overflow

    Aug 6, 2009 · How do you initialize an array in C#? Asked 16 years, 10 months ago Modified 2 years, 2 months ago Viewed 84k times

  7. C# Array Initialization: All Possible Syntax Options Explained with ...

    Jan 16, 2026 · 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 numbers, …

  8. C# Array Tutorial: How to Declare, Initialize, Access & Use Arrays

    Dec 2, 2025 · Learn how to declare, initialize, access, and manipulate arrays in C#. This guide covers sorting, copying, and finding the length of arrays with practical examples.

  9. C# Arrays (With Examples) - Programiz

    C# Arrays An array is a collection of similar types of data. For example, Suppose we need to record the age of 5 students. Instead of creating 5 separate variables, we can simply create an array: Elements …

  10. C# Array: How To Declare, Initialize And Access An Array In C#?

    Apr 1, 2025 · Learn All About C# Array in This In-depth Tutorial. It Explains How To Declare, Initialize And Access Arrays Along with Types And Examples Of Arrays in C#.