MetalamaAPI documentationAspect APIMetalama.​Framework.​Code­FixesCode­Fix
Open sandboxFocus

CodeFix Class

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 : Object

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.