LoginSignup
0
0

More than 3 years have passed since last update.

C# エラーメッセージ

Last updated at Posted at 2020-08-12

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'
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0