What is a difference between .cs file and class?
Experience Level: Junior
Tags: C#
Answer
- The C# source code contains classes (except the other code structures).
- The C# source code is stored in files with .cs extension.
- So the file with .cs extension contains C# classes (most of the time).
Related C# job interview questions
What is a project in Visual Studio and what file extension does it have?
C# JuniorWhat is a solution in Visual Studio and what file extension does it have?
C# JuniorWhere does the .NET C# program start its flow when you build and run a console application?
C# JuniorWhat is an object in C#?
C# JuniorWhat is a class in C#?
C# Junior