My Code Regions
I like to use code regions within my code. Within each region each code item is sorted alphabetically. This allows me to organize my code and quickly find code I am looking for.
Fields are class level variables. All fields should be private and exposed via properties
Each parent element can be repeated in the Nested Types region.
“Test SetUp and TearDown” and “Test Cases” regions should be in their own “test” class.
Every class should always have a log4net region…
Native Methods are “unmanaged” W32
API calls
All members should be organized alphabetically within each region.
Regular Classes
Logging (log4net)
Constants
Fields
Constructors (ctor)
Delegates
Events
Enumerations
Properties
Methods: Public (Static)
Methods: Public
Methods: Protected
Methods: Native (WinApi)
Methods: Private
Nested Types
Test Classes
Test SetUp and TearDown
Test Cases