Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Code­Fixes / Code­Fix / Code­Fix
Open sandbox

Constructor CodeFix

CodeFix(String, Func<ICodeActionBuilder, Task>)

Initializes a new instance of the CodeFix class. This constructor must only be used to create multi-transformations code fixes. For single-step code fixes, use CodeFixFactory.

public CodeFix(string title, Func<ICodeActionBuilder, Task> codeAction)
Type Name Description
String title

Title of the code fix, shown to the user (must be unique).

Func<ICodeActionBuilder, Task> codeAction

Delegate executed when the code fix is chosen by the user.