Created
August 8, 2014 07:55
-
-
Save st0326s/e94719d04af681df0177 to your computer and use it in GitHub Desktop.
C# 可変長引数 ref: http://qiita.com/satotin/items/81e1e9c41181c9766de6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class aaa { | |
static void bbb (int a ,params string[] strs) { | |
} | |
} | |
static void Main () { | |
int a = 1; | |
int b = 2; | |
bbb(a,"foo","bar","baz"); | |
bbb(b); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main () { | |
int a = 1; | |
int b = 2; | |
bbb(a,"foo","bar","baz"); | |
bbb(b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment