Order class methods based on interface

Hello.

Interface is a public declaration of the class capabilities so it's pretty natural to have class methods/properties to be sorted based on the order of their declaration in the interface. Is there a way to make R# to reorder class methods based on the interface?

I mean this:

public interface IMyService
{
     void Calc ();
     void Run ();
     void Do ();
}

internal class MyService : IMyService
{
     public void Do () { ... }
     public void Calc () { ... }
     public void Run () { ... }
}

Should be reordered (during XML-customized clean-up) to this:

internal class MyService : IMyService
{
     public void Calc () { ... }
     public void Run () { ... }
     public void Do () { ... }
}

1
3 comments

Hello Michael,

  ReSharper does not support class entities sorting based on the order in an interface.  

Thanks!

0
Avatar
Permanently deleted user

Hello.

Well, it would be nice feature to have then :)

0

Hello Michael,

  You are welcome to file it to YouTrack.

Thanks!

0

Please sign in to leave a comment.