When creating a new C# class I am not certain of what the best logical order for declaring properties, event delegates, functions, function overrides, etc. are and what considerations should be taken into account when deciding on that order.
Typically when creating the code behind class of a WebUserControl I end up placing things in this order:
Is there a more logical way to do this and what considerations should I be making when deciding on how to order these elements of the class within the class file?
Does not make any difference to the compilation, you might want to wrap the sections in #region
to make it easier for someone reading your code to know where they are and keeping them organized. It probably should be a coding standard for your company so all code is organized similarly and is less frustrating to look at...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With