Compartir a través de


Uniquifier.Uniquify Método

Definición

Sobrecargas

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

Crea un identificador único anexando un número a la cadena especificada.

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

Crea un identificador único anexando un número a la cadena especificada.

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

Crea un identificador único anexando un número a la cadena especificada.

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

Parámetros de tipo

T

Tipo del objeto al que se asigna el identificador.

Parámetros

currentIdentifier
String

Identificador de base.

otherIdentifiers
IReadOnlyDictionary<String,T>

Diccionario donde se usará el identificador como clave.

maxLength
Int32

Longitud máxima del identificador.

Devoluciones

Identificador único.

Se aplica a

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

Crea un identificador único anexando un número a la cadena especificada.

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

Parámetros de tipo

TKey

Tipo de la clave que contiene el identificador.

TValue

Tipo del objeto al que se asigna el identificador.

Parámetros

currentIdentifier
String

Identificador de base.

otherIdentifiers
IReadOnlyDictionary<TKey,TValue>

Diccionario donde se usará el identificador como parte de la clave.

keySelector
Func<String,TKey>

Crea el objeto de clave a partir de un identificador.

maxLength
Int32

Longitud máxima del identificador.

Devoluciones

Identificador único.

Se aplica a