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
This might seem like a strange suggestion, but what about an extension method on plain old IEnumerable? This would mirror the signature of OfType, and it would also eliminate the issue of the redundant type parameters.
I would also argue that if you have a strongly-typed sequence already, there is very little reason for a special NotOfType method; it seems a lot more potentially useful (in my mind) to exclude a specific type from a sequence of arbitrary type... or let me put it this way: if you're dealing with an IEnumerable, it's trivial to call Where(x => !(x is T)); the usefulness of a method like NotOfType becomes more questionable in this case.