D
D
dev4002016-10-23 18:05:11
C++ / C#
dev400, 2016-10-23 18:05:11

Is all c# program code written in one Program.cs file?

In all tutorials, all program classes are written in one Program.cs file. Is it convenient? Or is it at the time of training so done to simplify?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AxenovSergey, 2016-10-23
@dev400

This is done only during training or for very simple programs.

D
Dmitry Gavrilenko, 2016-10-23
@Maddox

If you look at the structure of large projects, you can see that there is not only a division of classes into files, there are also folders that represent a namespace. In any project, writing everything in one file is insanity!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question