Uniquifier.Uniquify 메서드

정의

오버로드

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

지정된 문자열에 숫자를 추가하여 고유 식별자를 만듭니다.

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

지정된 문자열에 숫자를 추가하여 고유 식별자를 만듭니다.

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

지정된 문자열에 숫자를 추가하여 고유 식별자를 만듭니다.

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

형식 매개 변수

T

식별자가 매핑하는 개체의 형식입니다.

매개 변수

currentIdentifier
String

기본 식별자입니다.

otherIdentifiers
IReadOnlyDictionary<String,T>

식별자를 키로 사용할 사전입니다.

maxLength
Int32

식별자의 최대 길이입니다.

반환

고유 식별자입니다.

적용 대상

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

지정된 문자열에 숫자를 추가하여 고유 식별자를 만듭니다.

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

형식 매개 변수

TKey

식별자를 포함하는 키의 형식입니다.

TValue

식별자가 매핑하는 개체의 형식입니다.

매개 변수

currentIdentifier
String

기본 식별자입니다.

otherIdentifiers
IReadOnlyDictionary<TKey,TValue>

식별자가 키의 일부로 사용되는 사전입니다.

keySelector
Func<String,TKey>

식별자에서 키 개체를 만듭니다.

maxLength
Int32

식별자의 최대 길이입니다.

반환

고유 식별자입니다.

적용 대상