Is the C # project file diarrhea normal?

The AC # programmer rewrote the Delphi 6 program (without a graphical interface, only because of the processing of files in files, about 50 procedures and functions totaling less than 1200 lines == 57kb keystrokes), which lives as a single .DPR file.

He set up a project containing 58 files (52 of which are .CS files) in 13 folders nested to various degrees, totaling more than 330 kilobytes.

Is this typical of C # projects? What strategy do C # programmers usually use to decide how to chop off and organize their project?

+3
source share
4 answers

Visual Studio IDE (VS), #/. NET. VS- , .cs , Solution Explorer / , .

Visual Studio , , .

, , ( ), .

:
alt text http://imar.spaanjaars.com/Images/Articles/UsingAccessProviders/SolutionExplorer.gif

Visual Studio, , , . Ewww...

+4

- - , -. :

1) , , ( , ..) , , .

2) , . . - , .

3) . , /, , . .

, , , , , , , . , ; ... .... ( ), , , .

+8

Delphi - , . , , , .

, - , : a) b) , .

, , , , - , , , , , . , .

+3

, , , , . # :

  • .
  • . Ex. GUI, - ..
  • , , .

Now the new code can be broken down to perform a more object-oriented design, but I cannot say without seeing the code.

+3
source

Source: https://habr.com/ru/post/1751498/


All Articles