text/x-csharp
C# source code
| Description | C# source code |
|---|---|
| File extensions | .cs |
| Based on | text/x-csrc |
Frequently asked questions
What is the MIME type text/x-csharp?
text/x-csharp denotes “C# source code”.
Which file extension does text/x-csharp use?
Files of type text/x-csharp usually end in .cs.
How does a web server serve text/x-csharp correctly?
With the header Content-Type: text/x-csharp. In nginx: types { text/x-csharp cs; }; in Apache: AddType text/x-csharp .cs.