Let suppose a method uses all the parameter types (in, out, named, params, optional) in method.
What is the proper order of param types for the compiler to be happy?
public static void test(out int num, in int num2, string last, string first="ABCD", params int [])
{
// Method contents
}
There is no defined order for the parameters (just param arrays need to in the last). As a senior developer we follow the following sequence: