How to group enumerations, structures and subclasses in classes?

I heard bad things about overuse of regions, but when adding enums to my classes I put them at #region "Enums"the end of the class and did the same with structures and even subclasses.

Is there a better / standard way to group such elements in classes?

(Note: this is tagged C # / VB, but perhaps the same situation exists for other languages ​​such as Java)

+3
source share
1 answer

Of course, a reasonable grouping is to use separate source files.

, , , . .

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

, // # - .

(), . , Collections CollectionBase.cs .

+3

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


All Articles