# Range Operator

The .. operator used to select a continuous portion of an indexable value.

## What does **Range Operator** do in C#?

**Range Operator** — The .. operator used to select a continuous portion of an indexable value.

```csharp
class Location
{
    void InspectName()
    {
        string city = "Denver";
        int characterCount = city.Length;
        char firstCharacter = city[0];
        string firstThree = city[..3];
    }
}
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/range-operator
