# Source File (.cs)

A text file containing C# code for the compiler to read.

## What is **Source File (.cs)** in C#?

**Source File (.cs)** — A text file containing C# code for the compiler to read.

```csharp
class Greeting
{
    string Message = "Hello, C#!";
}
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/source-file-cs
