次の方法で共有


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

識別子の最大長。

戻り値

一意識別子。

適用対象