I\'m trying to come up with an implementation for NotOfType, which has a readable call syntax. NotOfType should be the complement to OfType&l
NotOfType
OfType&l
You might consider this
public static IEnumerable NotOfType<TResult>(this IEnumerable source) { Type type = typeof(Type); foreach (var item in source) { if (type != item.GetType()) { yield return item; } } }