Open sandboxFocus

Method IsGenerated

IsGenerated(SyntaxTree)

At build time, determines if the specified SyntaxTree was generated by a source generator. At design time, returns null.

Declaration
public static bool? IsGenerated(SyntaxTree syntaxTree)
Parameters
Type Name Description
SyntaxTree syntaxTree
Returns
Type Description
bool?