111,094
社区成员




using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
public class farm
{
public int id { get; set; }
public string utime { get; set; }
public string playername { get; set; }
public string farmname { get; set; }
public int zlevel { get; set; }
public int blood { get; set; }
public int x { get; set; }
public int y { get; set; }
public int rice { get; set; }
public int stat { get; set; }
public int speed { get; set; }
public int step { get; set; }
public string pic { get; set; }
public int maxstorage { get; set; }
public int workstep { get; set; }
public int riceoutput { get; set; }
public string zmessage { get; set; }
}
List<farm> tmplist = JsonConvert.DeserializeObject<List<farm>>(s);
struct x
{
public string name;
public y address;
}
struct y
{
public string city;
public string street;
public int postcode;
}
string str = "{\"name\":\"Michael\",\"address\":{\"city\":\"Beijing\",\"street\":\" Chaoyang Road \",\"postcode\":100025}}";
string strTwo = "{\"address\":{\"city\":\"Beijing\",\"street\":\" Chaoyang Road \",\"postcode\":100025},\"name\":\"Michael\"}";
Console.WriteLine(fastCSharp.emit.equals<x>.Equals(fastCSharp.emit.jsonParser.Parse<x>(str), fastCSharp.emit.jsonParser.Parse<x>(strTwo)));