예제 #1
0
		public static UpdateError GetFromStream(Stream stream)
		{
			UpdateError errors = new UpdateError();
			DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(UpdateError));
			errors = (UpdateError)serializer.ReadObject(stream);

			return errors;
		}
예제 #2
0
        public static UpdateError GetFromStream(Stream stream)
        {
            UpdateError errors = new UpdateError();
            DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(UpdateError));

            errors = (UpdateError)serializer.ReadObject(stream);

            return(errors);
        }