In the code below, I do alt-insert and then generate constructor. In the dialog that comes up, the first problem I notice is that the "Select All" button does not work. Next, I notice that in this same dialog, my fields have been sorted alphabetically. This means that there is no way, on this dialog or the next (after I press the continue button) to use my fields in declaration order. I am forced to generate a constructor with fields sorted alphabetically. (The "sort alphabetically" checkbox on the next page--checked or unchecked--does not help)
namespace ConsoleApplication5 {
public class Cow {
private readonly int z;
private readonly int y;
private readonly int x;
//do"generate constructor" here
}
}
Description
In the code below, I do alt-insert and then generate constructor. In the dialog that comes up, the first problem I notice is that the "Select All" button does not work. Next, I notice that in this same dialog, my fields have been sorted alphabetically. This means that there is no way, on this dialog or the next (after I press the continue button) to use my fields in declaration order. I am forced to generate a constructor with fields sorted alphabetically. (The "sort alphabetically" checkbox on the next page--checked or unchecked--does not help)
namespace ConsoleApplication5 {
public class Cow {
private readonly int z;
private readonly int y;
private readonly int x;
//do"generate constructor" here
}
}