Table of Contents

Class Utils

Namespace
LinqToDB.Common
Assembly
linq2db.dll
public static class Utils
Inheritance
Utils

Methods

MakeUniqueNames<T>(IEnumerable<T>, IEnumerable<string>?, Func<T, string?>, Action<T, string, ISet<string>?>, Func<T, string?>, StringComparer?)

public static void MakeUniqueNames<T>(IEnumerable<T> items, IEnumerable<string>? staticNames, Func<T, string?> nameFunc, Action<T, string, ISet<string>?> nameSetter, Func<T, string?> defaultName, StringComparer? comparer = null)

Parameters

items IEnumerable<T>
staticNames IEnumerable<string>
nameFunc Func<T, string>
nameSetter Action<T, string, ISet<string>>
defaultName Func<T, string>
comparer StringComparer

Type Parameters

T

MakeUniqueNames<T>(IEnumerable<T>, IEnumerable<string>?, Func<T, string?>, Action<T, string, ISet<string>?>, string, StringComparer?)

public static void MakeUniqueNames<T>(IEnumerable<T> items, IEnumerable<string>? staticNames, Func<T, string?> nameFunc, Action<T, string, ISet<string>?> nameSetter, string defaultName = "t", StringComparer? comparer = null)

Parameters

items IEnumerable<T>
staticNames IEnumerable<string>
nameFunc Func<T, string>
nameSetter Action<T, string, ISet<string>>
defaultName string
comparer StringComparer

Type Parameters

T

MakeUniqueNames<T>(IEnumerable<T>, ISet<string>?, Func<string, ISet<string>?, bool>, Func<T, string?>, Action<T, string, ISet<string>?>, Func<T, string?>, StringComparer?)

public static void MakeUniqueNames<T>(IEnumerable<T> items, ISet<string>? namesParameter, Func<string, ISet<string>?, bool> validatorFunc, Func<T, string?> nameFunc, Action<T, string, ISet<string>?> nameSetter, Func<T, string?> defaultName, StringComparer? comparer = null)

Parameters

items IEnumerable<T>
namesParameter ISet<string>
validatorFunc Func<string, ISet<string>, bool>
nameFunc Func<T, string>
nameSetter Action<T, string, ISet<string>>
defaultName Func<T, string>
comparer StringComparer

Type Parameters

T

RemoveDuplicatesFromTail<T>(IList<T>, Func<T, T, bool>)

public static void RemoveDuplicatesFromTail<T>(this IList<T> list, Func<T, T, bool> compareFunc)

Parameters

list IList<T>
compareFunc Func<T, T, bool>

Type Parameters

T

RemoveDuplicates<T>(IList<T>, IEqualityComparer<T>?)

public static void RemoveDuplicates<T>(this IList<T> list, IEqualityComparer<T>? comparer = null)

Parameters

list IList<T>
comparer IEqualityComparer<T>

Type Parameters

T

RemoveDuplicates<T, TKey>(IList<T>, Func<T, TKey>, IEqualityComparer<TKey>?)

public static void RemoveDuplicates<T, TKey>(this IList<T> list, Func<T, TKey> keySelector, IEqualityComparer<TKey>? comparer = null)

Parameters

list IList<T>
keySelector Func<T, TKey>
comparer IEqualityComparer<TKey>

Type Parameters

T
TKey