GH_ComponentParamServer.InventUniqueNickname Method (String, IEnumerable(String))

GH_ComponentParamServerInventUniqueNickname Method (String, IEnumerableString)

Create a new, unique parameter name.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static string InventUniqueNickname(
	string allowedChars,
	IEnumerable<string> existingNames
)
Public Shared Function InventUniqueNickname ( 
	allowedChars As String,
	existingNames As IEnumerable(Of String)
) As String

Parameters

allowedChars
Type: SystemString
Allowed character set for naming logic.
existingNames
Type: System.Collections.GenericIEnumerableString
A collection of parameter names to avoid.

Return Value

Type: String
The first name combination that doesn't occur in the existingNames collection.
See Also