mccalltd/AttributeRouting — pull request #139 by JSkimming (2012-10-27 11:00:47+00:00)
Title: Changed to Use OfType instead of "Where is Cast"

While researching something completely different I came across this code and thought I could help.

Prior to the change the code was checking the type with `Where(x => x is Route)` then casting using `Cast()`. Using `OfType()` is more concise and has the potential to be more efficient, though having just checked it isn't since `OfType` is implemented like this:

```c#
foreach (object obj in source) {
if (obj is TResult) yield return (TResult)obj;
}
```

Ultimately the function of the code is completely unchanged, I think it is worth implementing as it marginally simplifies it.