Sdílet prostřednictvím


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);
static member Uniquify : string * System.Collections.Generic.IReadOnlyDictionary<string, 'T> * int -> string
Public Shared Function Uniquify(Of T) (currentIdentifier As String, otherIdentifiers As IReadOnlyDictionary(Of String, T), maxLength As Integer) As String

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);
static member Uniquify : string * System.Collections.Generic.IReadOnlyDictionary<'Key, 'Value> * Func<string, 'Key> * int -> string
Public Shared Function Uniquify(Of TKey, TValue) (currentIdentifier As String, otherIdentifiers As IReadOnlyDictionary(Of TKey, TValue), keySelector As Func(Of String, TKey), maxLength As Integer) As String

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