I don't agree with:
Brad Adams wrote:
Classes member should be alphabetized, and grouped into sections (Fields, Constructors, Properties, Events, Methods, Private interface implementations, Nested types)
public class FooClass : IFoo
{
// delegates
public delegate void OnSomethingEventHandler();
...
// events
public event OnSomethingEventHandler OnSomething;
...
// fields
private int foo;
...
// properties
public int Foo
{
get { return foo; }
set { foo = value; }
}
// constructors
public FooClass() {}
public FooClass(int something) {}
// unmanaged code
[DllImport ...] ...
// methods
private void Lala() {}
public void La() {}
...
// interface impl.
private void IFoo.sddf() {}
...
// nested types: class
internal class XYZ {}
...
// nested types: structs
public struct XZ {}
...
// nested types: enums
public enum : int { ... }
}
So how is your coding style? How do you organize your project (in multiple projects or?), how do you name controls?