参数“argument”无法从 TypeA 转换为 TypeB
方法中一个参数的类型与实例化类时传递的类型不匹配。
以下示例生成 CS1503:
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
}
}
}