Click or drag to resize
StringXGetUniqueName Method (String, HashSetString)
Gets an auto-incremented version of the specified base name that does not already exist in the specified collection.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static string GetUniqueName(
	this string baseName,
	HashSet<string> existingNames
)

Parameters

baseName
Type: SystemString
Base name.
existingNames
Type: System.Collections.GenericHashSetString
Existing names.

Return Value

Type: String
An auto-incremented version of the specified base name that does not already exist in the specified collection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also