public static UpdateError GetFromStream(Stream stream) { UpdateError errors = new UpdateError(); DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(UpdateError)); errors = (UpdateError)serializer.ReadObject(stream); return errors; }
public static UpdateError GetFromStream(Stream stream) { UpdateError errors = new UpdateError(); DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(UpdateError)); errors = (UpdateError)serializer.ReadObject(stream); return(errors); }