Possibility to rearrange properties in object initializer

58 Views Asked by At

I would like to rearrange my properties inside a object initializer, by manually defining the new position. I found this Question but the first method only sorts the properties alphabetically, the other uses a different extension method.

new Student { StudentID = 2, Nationality = Nationalities.Austrian, StudentName = "Peter", Age = 21 }

A line like the above, I would like to rearrange using ReSharper or a Built-In Feature to this:

new Student { StudentID = 2, StudentName = "Peter", Age = 21,  Nationality = Nationalities.Austrian }

Is there any possibility to achieve this?

0

There are 0 best solutions below