I came across an article that describes how to create a .Each() for LINQ, a la jQuery. I stuck the code in one of my controllers but when I try to call it, Intellisense doesn’t see it… I also read an article from 4guysFromRolla that describes how to create LINQ extensions but they don’t talk about having to place the code in any special place…
what’s the magic here?
Extension methods should be defined inside of a non-nested, non-generic static class: Extension Methods