Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Last active January 2, 2016 08:19
Show Gist options
  • Save jamesmontemagno/8276081 to your computer and use it in GitHub Desktop.
Save jamesmontemagno/8276081 to your computer and use it in GitHub Desktop.
Using Json.Net + Xamarin.iOS + PCL + MvvmCross
public Task<T> DeserializeObjectAsync<T>(string value)
{
return Task.Factory.StartNew (() => JsonConvert.DeserializeObject<T> (value))
}
public T DeserializeObject<T>(string value)
{
return JsonConvert.DeserializeObject<T>(value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment