Browse by Tags

Tagged Content List
  • Wiki Page: Extend your objects with DynamicObject to get a dynamic experience

    What is considered a dynamic experience? If you have ever programmed in a dynamic programming language you know that you can pretty much ask for anything on any object, consider this code in any dynamic programming language: var person = new Person(); person.Name = "Filip"...
  • Wiki Page: Serving Files Insecurely in ASP.NET

    The scenario Let’s say that you have system where customers can logon to download their invoices. We’re using ASP.NET MVC and the action that retrieves our list of invoices is quite simple, it looks like this: public ActionResult MyInvoices() { // Get the file names from the persistent...
  • Wiki Page: Memory access pattern matters even in managed programming

    At BUILD 2013 there was a talk on Native Code Performance and Memory: The Elephant in the CPU , even though I didn’t attend BUILD this year I watched it on Channel9 and I’d like to recap something from it that I find interesting. In many cases I think that we ignore the fact that we need to handle...
  • Wiki Page: Optimize your delegate usage

    Kudos to David Fowler for spotting this! We had a chat on JabbR and David pointed out something quite odd about delegates which he had discovered while optimizing some code. Let’s assume that we have the following code that declares a delegate and a method that uses it: public delegate...
  • Wiki Page: Introduction to ASP.NET Web API

    In the new version of ASP.NET you can use something called ASP.NET Web API. This allows you to expose your data in many different formats, such as XML or JSON . The idea is to provide a REST API where you use HTTP for real. Meaning that you use GET/POST/PUT/DELETE . These work pretty straight forward...
  • Wiki Page: What does async & await generate?

    Do you ever get the feeling that you want to know exactly what happens behind the scenes? I do, quite a lot actually. Which is one of the many reasons that I’ve written about IL, Reflection and ways to prove how certain code behaves and works using tools such as Reflector. If you’ve read my book C#...
  • Wiki Page: Running SignalR on Mono

    If you are one of those people, just like I am, that still use Linux for hosting despite that you love and only do .NET development; this is something extremely awesome. Ever since I started using SignalR I’ve wanted to host it on my own servers but all of them run on Linux with Mono and Apache. When...
  • Wiki Page: Getting started with a Mocking Framework

    Mocking in general You might have come across the word “mock” before, when for instance a UI designer for a Windows Phone application on your team puts together a picture of how the application might look when it is finished: Where do the buttons go? What text might be displayed when...
Page 1 of 1 (8 items)
Can't find it? Write it!