これは私が持ちたいものです:
static void A(string s)
{
//Code Here...
}
static void B(string s)
{
//Code Here...
}
static void C(string s)
{
//Code Here...
}
static void Main(string[] args)
{
string temp = Console.ReadLine();
string[] s = temp.Split(' ');
if (s[0] == "A")
A(s[1]);
if (s[0] == "B")
B(s[1]);
if (s[0] == "C")
C(s[1]);
}
しかし、メソッドがたくさんあると、うまく機能しません...
これを行う別の方法はありますか?