Compiler Error CS1503
Argument 'argument' cannot convert from TypeA to TypeB
The type of one argument in a method does not match the type that was passed when the class was instantiated.
The following sample generates CS1503:
C#
namespace x
{
public class a
{
public a(char i)
// try the following constructor instead
// public a(int i)
{
}
public static void Main()
{
a aa = new a(2222); // CS1503
}
}
}
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: