Uniquifier.Uniquify Metoda

Definice

Přetížení

Uniquify<T>(String, IReadOnlyDictionary<String,T>, Int32)

Vytvoří jedinečný identifikátor připojením čísla k danému řetězci.

Uniquify<TKey,TValue>(String, IReadOnlyDictionary<TKey,TValue>, Func<String,TKey>, Int32)

Vytvoří jedinečný identifikátor připojením čísla k danému řetězci.

Uniquify<T>(String, IReadOnlyDictionary<String,T>, Int32)

Vytvoří jedinečný identifikátor připojením čísla k danému řetězci.

public static string Uniquify<T> (string currentIdentifier, System.Collections.Generic.IReadOnlyDictionary<string,T> otherIdentifiers, int maxLength);

Parametry typu

T

Typ objektu, na který se identifikátor mapuje.

Parametry

currentIdentifier
String

Základní identifikátor.

otherIdentifiers
IReadOnlyDictionary<String,T>

Slovník, ve kterém se identifikátor použije jako klíč.

maxLength
Int32

Maximální délka identifikátoru.

Návraty

Jedinečný identifikátor.

Platí pro

Uniquify<TKey,TValue>(String, IReadOnlyDictionary<TKey,TValue>, Func<String,TKey>, Int32)

Vytvoří jedinečný identifikátor připojením čísla k danému řetězci.

public static string Uniquify<TKey,TValue> (string currentIdentifier, System.Collections.Generic.IReadOnlyDictionary<TKey,TValue> otherIdentifiers, Func<string,TKey> keySelector, int maxLength);

Parametry typu

TKey

Typ klíče, který obsahuje identifikátor.

TValue

Typ objektu, na který se identifikátor mapuje.

Parametry

currentIdentifier
String

Základní identifikátor.

otherIdentifiers
IReadOnlyDictionary<TKey,TValue>

Slovník, ve kterém se identifikátor použije jako součást klíče.

keySelector
Func<String,TKey>

Vytvoří objekt klíče z identifikátoru.

maxLength
Int32

Maximální délka identifikátoru.

Návraty

Jedinečný identifikátor.

Platí pro