How to implement interface properties NOT in alphabetical order

The VS 'implement interface' functionality obviously uses reflection to generate the code, and there is nothing in the reflection APIs that guarantees the order of members returned by the various calls. We do not have control over either the reflection order or the VS code generator used to implement interfaces, so we can't change the way it works.

Basically the only option is to use a VS extension like resharper that replaces the implement interface functionality.


In VS2019 you can change this in the options.

  1. Tools -> Options -> Text Editor -> C# -> Advanced -> Implement interface or Abstract class set to at the end.

  2. Restart Visual Studio.

This seems to add the functions in the same order as in the interface.