daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [JsonObject]
  2. public class RootObject
  3. {
  4.     [JsonProperty]
  5.     public Profile ProfileInfo { get; set; } = new Profile();
  6.  
  7.     [JsonProperty]
  8.     public ImmutableList<Info> AdditionalInfo { get; set; } = ImmutableList.Create<Info>();
  9. }
  10.    
  11. var rootObject = JsonConvert.DeserializeObject<RootObject>(json);
  12.    
  13. <Type Name="System.Collections.Immutable.ImmutableList" Dynamic="Required All" />
  14.    
  15. dynamic obj = JsonConvert.DeserializeObject(rpcStatus);
  16.    
  17. dynamic obj = JsonConvert.DeserializeObject<ExpandoObject>(rpcStatus);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top