Skip to content

The Roslyn-based GenAPI must substitute operator's implementation body throw null #11814

@andriipatsula

Description

@andriipatsula

We must implement CSharpSyntaxRewriter.VisitOperatorDeclaration to handle operators.

public class Car : System.IEquatable<Car>
{
///...
    public static bool operator ==(Car lhs, Car rhs) {  } // => { throw null; }
    public static bool operator !=(Car lhs, Car rhs) {  } // => { throw null; }
}

Metadata

Metadata

Assignees

Labels

area-product-constructionIssues owned by the Product Construction team. Used to label epics and untriaged, loose issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions