JSON.net snake case notation naming strategy

Communicating with backend in JSON can be challenging.
In case of C# model which by convention should be in CamelCase notation and backend which is using snake_notation we can easily solve the problem with Json.NET.

For example, we have the next model:

public class Model  
{  
  public string FooBar { get; set; }  
}

and we want it to be serialised to: { “foo_bar”: “” }
We could use an attribute:

\[JsonProperty(PropertyName = "foo\_bar")\]  
public string FooBar { get; set; }
Read More

How to debug an iOS app build in Xamarin on a real device for free?

“With Apple’s release of Xcode 7 came an important change for all iOS and Mac developers–free provisioning.”

So all you need is an apple id and to configure your IDE.
There are a lot of guides available out there, so this post is not going to be another one:
Xamarin Developer Guide
- http://stackoverflow.com/a/32249026/1970317

One thing that can be confusing is that first, you need to create a Xcode project with the same “Bundle Identifier” and then download the free provisioning profile. Just pay attention to the uniqueness of your bundle identifier otherwise, it won’t work.

Read More