Open sandboxFocus

Class CodeFix

Represents a modification of the current solution, including the Title of transformation. To instantiate a single-step code fix, use CodeFixFactory. To instantiate a more complex code fix, use the constructor.

Inheritance
CodeFix
Namespace: Metalama.Framework.CodeFixes
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class CodeFix

Constructors

Name Description
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.

Properties

Name Description
Title

Gets the title of the CodeFix, displayed to the user in the light bulb or refactoring menu.