Edit

Share via


Compiler Error C3815

return type of method 'get_accessor' must match type of the last parameter of a setter

When declaring properties, the return value of the get_accessor method must match the last parameter in the declaration of the set accessor method.

C3815 is only reachable using the obsolete compiler option /clr:oldSyntax.