Metalama//API Documentation/Aspect API/Metalama.​Framework.​Diagnostics/IDiagnostic/With­Code­Fixes
Open sandboxFocus

Method WithCodeFixes

WithCodeFixes(CodeFix[])

Adds a set of code fixes to the current instance, and returns the current augmented instance. To create a one-step code fix, use the CodeFixFactory class.

Declaration
IDiagnostic WithCodeFixes(params CodeFix[] codeFixes)
Parameters
Type Name Description
CodeFix[] codeFixes
Returns
Type Description
IDiagnostic