It is also possible to send arguments with the key: value
syntax.
That way, the order of the arguments does not matter:
static void MyMethod(string child1, string child2, string child3)
{
Console.WriteLine("The youngest child is: " + child3);
}
static void Main(string[] args)
{
MyMethod(child3: "John", child1: "Liam", child2: "Liam");
}
// The youngest child is: John
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!