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.
#region "Enums"
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)
Of course, a reasonable grouping is to use separate source files.
, , , . .
, , , , , . , , , . (, , .)
, // # - .
(), . , Collections CollectionBase.cs .
Collections
CollectionBase.cs
Source: https://habr.com/ru/post/1760854/More articles:Check if a variable differs from several values - variablesJAva: why is nothing written in my txt file? - javaПерехват событий щелчка на элементахкоторые программно добавлены в DOM - javascriptHow to use MediaController.MediaPlayerControl? - androidClose multiple Safari windows with applescript - applescriptGetting unique related models from an array of another model - ruby | fooobar.comCompression / packing "does not care" bits in 3 states - algorithmASP.Net MVC reusable form like RenderAction or RenderPartial - asp.net-mvcShow the number of unread messages in C # - c #Что делает NSLog на самом деле? - objective-cAll Articles