NameGenerator.EnsureUniqueName Method
Containing Type: NameGenerator
Assembly: Roslynator.Core.dll
Overloads
Method | Summary |
---|---|
EnsureUniqueName(String, IEnumerable<String>, Boolean) | Returns an unique name using the specified list of reserved names. |
EnsureUniqueName(String, ImmutableArray<ISymbol>, Boolean) | Returns an unique name using the specified list of symbols. |
EnsureUniqueName(String, SemanticModel, Int32, Boolean) | Returns a name that will be unique at the specified position. |
EnsureUniqueName(String, IEnumerable<String>, Boolean)
Returns an unique name using the specified list of reserved names.
public abstract string EnsureUniqueName(string baseName, System.Collections.Generic.IEnumerable<string> reservedNames, bool isCaseSensitive = true)
Parameters
baseName String
reservedNames IEnumerable<String>
isCaseSensitive Boolean
Returns
EnsureUniqueName(String, ImmutableArray<ISymbol>, Boolean)
Returns an unique name using the specified list of symbols.
public abstract string EnsureUniqueName(string baseName, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISymbol> symbols, bool isCaseSensitive = true)
Parameters
baseName String
symbols ImmutableArray<ISymbol>
isCaseSensitive Boolean
Returns
EnsureUniqueName(String, SemanticModel, Int32, Boolean)
Returns a name that will be unique at the specified position.
public string EnsureUniqueName(string baseName, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, bool isCaseSensitive = true)
Parameters
baseName String
semanticModel SemanticModel
position Int32
isCaseSensitive Boolean