UniqueNameHelperGenerateUniqueName Method (String, IEnumerableString)

Generates an unique name using an existing list of elements and a proposal.

Namespace:  Dundas.BI
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
public static string GenerateUniqueName(
	string proposal,
	IEnumerable<string> elements
)

Parameters

proposal
Type: SystemString
The proposed value.
elements
Type: System.Collections.GenericIEnumerableString
The existing string elements.

Return Value

Type: String
The generated unique name.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionproposal is or empty.
See Also