티스토리 뷰
// C# : Named Arguments
using System;
namespace Sharp1
{
class Program
{
static void Main(string[] args)
{
Work(b: "Big", a: "Ace"); // Named Arguments
}
static void Work(string a, string b)
{
Console.WriteLine("a: " + a);
Console.WriteLine("b: " + b);
}
}
}
/* Output
a: Ace
b: Big
*/
'Series' 카테고리의 다른 글
Detect Windows Architecture [C#] Directory.Exists (Not Good Solution) (0) | 2018.06.25 |
---|---|
Argument Parameter [Python] Keyword Arguments (0) | 2018.06.24 |
Argument Parameter [Python] Default Argument Values (0) | 2018.06.24 |
Argument Parameter [C++] Default Arguments (0) | 2018.06.24 |
Argument Parameter [C#] Optional Arguments (0) | 2018.06.24 |