Friday, November 29, 2013

Public field not bound when posting to WebAPI (or a deep dive into WebAPI model binding)

When trying to create a sandbox project using WebAPI (on MVC4), I was struggling with a weird problem: My data wasn't being received in the server. I had the following jQuery call $.post("api/Values", {value1:1, value2:2}, function(result){ console.log(result); }) and the WebAPI...

Tuesday, November 19, 2013

Backing field for automatically implemented property [Field] must be fully assigned before control is returned to the caller

Working with structs in C# gives you a lot of flexibility on the way you design your applications, but since they are not reference types, they have some special features that we need to take in count. Recently I was working on a web application and I created a struct to hold a pair...

 

Copyright @ 2013 A learning journey.