This long awaited feature is finally implemented in v0.7.
Now you can use multiple tags in the OrderBy statements, for example:
1: <PutMethods>
2: <OrderBy>
3: <Name />
4: <ParametersCount />
5: </OrderBy>
6: </PutMethods>
will place all methods, will order them by name and then will sub-order them by the number of parameters in the method.
Meaning that this piece of code:
1: interface IGateway
2: {
3: void Initialize(Configuration configuration);
4: void Finalize(string connectionString, string username, string password);
5: void Initialize(string connectionString, string username, string password);
6: void Finalize();
7: void Initialize();
8: }
will turn into:
1: interface IGateway
2: {
3:
4: #region Operations (5)
5:
6: void Finalize();
7:
8: void Finalize(string connectionString, string username, string password);
9:
10: void Initialize();
11:
12: void Initialize(Configuration configuration);
13:
14: void Initialize(string connectionString, string username, string password);
15:
16: #endregion Operations
17:
18: }
[...] example, I was implementing a new feature for Regionerate a couple of days ago in which I had to sort a list, split it into distinct values [...]
Posted by rauchy’s Blog - Desperately Trying to Decouple on July 10th, 2008 9:05 am