Compiler Error CS1503

Argument 'number' 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. This error typically appears along with CS1502. See CS1502 for a discussion of how to resolve this error.

Change History




July 2008

Revised error message text.

Content bug fix.