C # - use partial classes or separate sections?

Possible duplicate:
Why use partial classes?

What is the best practice and best programming approach, partial classes or individual classes?

+3
source share
2 answers

Use only partial classes, where there is a clear advantage in separating the logic of one class from multiple files. The most obvious example is that some of the code is auto-generated - code generators usually need to create partial types so that they can be complemented by the developer.

, , .

- ; , . , ... , System.Linq.Enumerable .NET 3.5 , , .

+20

GUI, , , , , , , . .

/ , . IDE , .

+3

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


All Articles