Split
の引数を"
で囲ってしまった時に出たエラー。使用するときは、data.Split(',')
のようにシングルクォーテーションで指定する。
Main.cs(8,31): error CS1502: The best overloaded method match for `string.Split(params char[])' has some invalid arguments
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Main.cs(8,37): error CS1503: Argument `#1' cannot convert `string' expression to type `char[]'
implicitly convert type
とは、「暗黙の型変換」の意味。int型の変数に、string型の文字列を代入しようとしたときに出たエラー。
Main.cs(8,25): error CS0029: Cannot implicitly convert type `string[]' to `int'