Tag Archives: Anonymous Methods

Cannot Resolve Method, Can’t Infer Return Type, and Funcs

So ran into this today and the answer was actually a lot easier to understand than I thought it would be. Say you want to order a list of objects by a number. Seems simple. Now if you have been paying attention you would know I like using Funcs. Func<SomeClass, Int32> orderByNumber = currentClass => [...]

Leave a comment Continue Reading →

You can do that in Javascript: Anonymous Methods

So found out yesterday that anonymous methods exist in javascript. Who knew? divToAdd.onmouseover = function() { picker.changeStyles(divToAdd, true); }; Where picker.changeStyles is a method on a class. Javascript is starting to grow on me.

Leave a comment Continue Reading →