# Escape Sequence

*noun*

say it: **“ih-SKAYP SEE-kwens”** **/ɪˈskeɪp ˈsiːkwəns/**

A backslash code inside a string that stands for a special character, such as a new line or a quote mark.

## What is **Escape Sequence** in C#?

**Escape Sequence** — A backslash code that represents a special character inside a string or character literal.

```csharp
class FileLocation
{
    string path = @"C:\orders\today.txt";
}
```

## In a sentence

- “I used the **escape sequence** for a new line to put the address on two lines.”

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=2)

Updated: November 9, 2026

## In other subjects

- [Escape Sequence in Java](https://www.ask-codey.com/glossary/escape-sequence)
- [Escape Sequence in JavaScript](https://www.ask-codey.com/glossary/escape-sequence-javascript)

Source: https://www.ask-codey.com/glossary/escape-sequence-c-sharp
