Skip to main content

NameGenerator.EnsureUniqueLocalName(String, SemanticModel, Int32, Boolean, CancellationToken) Method

Containing Type: NameGenerator

Assembly: Roslynator.Core.dll

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

public string EnsureUniqueLocalName(string baseName, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, bool isCaseSensitive = true, System.Threading.CancellationToken cancellationToken = default)

Parameters

baseName String

semanticModel SemanticModel

position Int32

isCaseSensitive Boolean

cancellationToken CancellationToken

Returns

String