Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

2011-05-26から1日間の記事一覧

paramsキーワードで少しだけ楽をする

メソッドの引数が配列の場合、paramsキーワードを付加できます。これで要素を列挙するだけで配列を渡せるので、呼び出し側は少しだけ楽ができます。 private static void Hoge(string[] foo) { } private static void Fuga(params string[] foo) { } static …