Members Layout and Explicit Method Implementations
I'm trying to create a Members Layout configuration that will satisfy StyleCop's requirements for SA1202. I have everything correct except for one thing. When sorting members by access, ReSharper groups explicit inteface member implementations along with private members. This is correct according to the C# language rules. However StyleCop, as described here http://stylecop.codeplex.com/workitem/7089, requires explict member implementations to be grouped with public members. Is there any way I can configure ReSharper to sort members this way? I'm using ReSharper 7.1.2. Thank you.For example, I want this:class Foo : IEnumerable{ public void PublicMethod() {} // StyleCop wants this method here, but ReSharper will put it down with the private methods if I'm sorting by access IEnumerator System.Collections.IEnumerable.GetEnumerator() { return null; } protected void ProtectedMethod() {} private void PrivateMethod() {}}
Please sign in to leave a comment.