# Escape Sequence

A backslash code that represents a special character inside a string or character literal.

## 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";
}
```

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

- [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
