CodeRefactoringProvider Class

Definition

Inherit this type to provide source code refactorings. Remember to use ExportCodeRefactoringProviderAttribute so the host environment can offer your refactorings in a UI.

C#
public abstract class CodeRefactoringProvider
Inheritance
CodeRefactoringProvider

Constructors

Properties

RequestPriority

Priority class this refactoring provider should run at. Returns Default if not overridden. Slower, or less relevant, providers should override this and return a lower value to not interfere with computation of normal priority providers.

Methods

ComputeRefactoringsAsync(CodeRefactoringContext)

Computes one or more refactorings for the specified CodeRefactoringContext.

ComputeRequestPriority()

Computes the CodeActionRequestPriority group this provider should be considered to run at. Legal values this can be must be between Low and High.

Applies to

Produk Versi
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0