Compiler Error CS1503
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error CS1503 

Error Message

Argument 'arg': cannot convert from 'type1' to 'type2'

The type of one argument in a method does not match the type that was passed when the class was instantiated.

See CS1502 for a discussion on how to resolve this error.

© 2016 Microsoft