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?