/// <summary> /// Determines whether a sequence contains a specified element by using a specified <see cref="IEqualityComparer{TSource}"/>. /// </summary> /// <typeparam name="TSource">The type of the <see cref="IEnumerable{T}"/> of <see paramref="source"/>.</typeparam> /// <param name="source">A sequence in which to locate a value.</param> /// <param name="value">The value to locate in the sequence.</param> /// <param name="condition">The function delegate that will compare values from the <paramref name="source"/> sequence with <paramref name="value"/>.</param> /// <returns> /// <c>true</c> if the source sequence contains an element that has the specified value; otherwise, <c>false</c>. /// </returns> public static bool Contains <TSource>(this IEnumerable <TSource> source, TSource value, Func <TSource, TSource, bool> condition) { return(EnumerableUtility.Contains(source, value, condition)); }