I know that private fields are first. Where should be placed other members according to C# code-style?
I mean: private/protected/internal/public fields/properties/methods/events.
I always placed events at the last part of class. I sometimes place private method near public property that use it. I don’t think it is right location, but i can’t choose the place for it and for a lot of other members.
According to StyleCop (the style checker made by Microsoft), the correct ordering is:
You might also be interested in rule SA1201, which deals with the order of the types of elements (ie. Fields go first, then constructors, …).
To read more about the StyleCop Rules Guide go here: http://stylecop.codeplex.com/releases/view/44839