Adding "this" keyword to enumerable extension methods

This commit is contained in:
Chris Cameron
2017-07-17 11:43:25 -04:00
parent f6a006c90d
commit 3479c20ff5

View File

@@ -644,7 +644,7 @@ namespace ICD.Common.Utils.Extensions
/// <param name="extends"></param> /// <param name="extends"></param>
/// <returns></returns> /// <returns></returns>
[PublicAPI] [PublicAPI]
public static IEnumerable<T> Consolidate<T>(IEnumerable<T> extends) public static IEnumerable<T> Consolidate<T>(this IEnumerable<T> extends)
{ {
if (extends == null) if (extends == null)
throw new ArgumentNullException("extends"); throw new ArgumentNullException("extends");
@@ -664,7 +664,7 @@ namespace ICD.Common.Utils.Extensions
/// <param name="comparer"></param> /// <param name="comparer"></param>
/// <returns></returns> /// <returns></returns>
[PublicAPI] [PublicAPI]
public static IEnumerable<T> Consolidate<T>(IEnumerable<T> extends, IComparer<T> comparer) public static IEnumerable<T> Consolidate<T>(this IEnumerable<T> extends, IComparer<T> comparer)
{ {
if (extends == null) if (extends == null)
throw new ArgumentNullException("extends"); throw new ArgumentNullException("extends");