# Array Initializer

A brace-enclosed list of values used to fill an array when it is created.

## What is **Array Initializer** in C#?

**Array Initializer** — A brace-enclosed list of values used to fill an array when it is created.

```csharp
class Route
{
    string[] stops = { "Oak", "Pine", "Lake" };
    string secondStop = "Pine";
    int stopCount = 3;
}
```

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/apprentice)

Updated: September 27, 2026

## In other subjects

- [Array Initializer in Java](https://www.ask-codey.com/glossary/array-initializer)

Source: https://www.ask-codey.com/glossary/array-initializer-c-sharp
