At least one parameter type of this binary operator must be the containing type '<typename>'
A definition of a binary operator specifies both parameters with types other than that of the class or structure in which the operator is defined.
When you define an operator in a class or structure, at least one of the parameters must be of the type of that class or structure.
Error ID: BC33021
- Change the type of one or both of the parameters to the type of the class or structure in which the operator is defined.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: