T deserialize(String s){ XmlSerializer xml = new XmlSerializer(typeof(T)); byte[] buf = Encoding.UTF8.GetBytes(s); MemoryStream ms = new MemoryStream(buf); T obj=(T)xml.Deserialize(ms); return obj;
B.Weather w=deserialize(s) C.Weather w=(Weather)deserialize(s) D.都不对