Skip to main content

NameGenerator.EnsureUniqueParameterName(String, ISymbol, SemanticModel, Boolean, CancellationToken) Method

Containing Type: NameGenerator

Assembly: Roslynator.Core.dll

Return a parameter name that will be unique at the specified position.

public string EnsureUniqueParameterName(string baseName, Microsoft.CodeAnalysis.ISymbol containingSymbol, Microsoft.CodeAnalysis.SemanticModel semanticModel, bool isCaseSensitive = true, System.Threading.CancellationToken cancellationToken = default)

Parameters

baseName String

containingSymbol ISymbol

semanticModel SemanticModel

isCaseSensitive Boolean

cancellationToken CancellationToken

Returns

String