public static IEnumerable NotOfType <TType>(this IEnumerable source) { if (source == null) { throw new ArgumentNullException(nameof(source)); } return(EnumerableEx.NotOfTypeInternal <object, TType>(source.Cast <object>())); }
public static IEnumerable <TSource> NotOfType <TSource, TType>(this IEnumerable <TSource> source) where TType : TSource { if (source == null) { throw new ArgumentNullException(nameof(source)); } return(EnumerableEx.NotOfTypeInternal <TSource, TType>(source)); }