To convert an HTML table (from a string) to an ASP.NET table: Start with an HTML table: Create a Helper class: Open the HTML file, and pass the root node to the helper class: The helper class needs to be fleshed out some more, to provide support for other elements and valid HTML, but it’s... Continue Reading →
Silverlight unit testing requirements
When setting up a Silverlight Unit Testing class the following using statements and inheritance must be applied: These are required for the TestPanel and EnqueueX methods (particularly inheritance). For more on the Inner Class Pattern, take a look at the Type Mock training blog.
Silverlight Unit Testing and Mocking
Excellent step by step post from Justin Angel – what a guy!! http://silverlight.net/blogs/justinangel/archive/2009/02/25/silverlight-unit-testing-rhinomocks-unity-and-resharper.aspx
Asynchronous Lambda Method calls
You won’t get any benefit using this code, but it makes for more manageable source. So from Pete Browns blog: All network calls in Silverlight are asynchronous. The proliferation of event handling functions this can cause just makes for really cluttered code. Using lambda expressions seems to make my code a bit cleaner. (You can... Continue Reading →