views:

37

answers:

1

When I design interfaces, I don't tend to order their members in alphabetical order - I come up with an order that is logical and readable for the solution.

Whenever I implement an interface I use the "smart tag" for the interface name to get Visual Studio to implement skeleton methods / properties for me. This is a neat feature and it saves a lot of time. However, it automatically orders the implemented members in alphabetical order. I would prefer it to keep the order that they are defined in the interface.

Does anyone know if this is possible?

Thanks, Alan

+1  A: 

As far as i know: No.

If you click on Go to Defintion for a function where no source code is available (e.g. IList<T>.Add()) you'll get a temp file where all these names are ordered alphabetical, too.

Last but not least .Net Reflector also shows everything in alphabetical order, but i don't know if this ordering is a feature by the tool or if the compiler really puts everything in this order into the compiled assembly.

Oliver
Thanks Oliver. That was my suspicion too.
Alan Spark