/// <summary> /// Deserializes an <see cref="T:System.Object" /> using the specified <see cref="T:System.IO.Stream" />. /// </summary> /// <param name="stream">The <see cref="T:System.IO.Stream" /> that the <see cref="T:System.Object" /> is being deserialized from.</param> /// <returns>The deserialized <see cref="T:System.Object" />.</returns> public VehicleFamily Deserialize(Stream stream) { using (stream) { return((VehicleFamily)DCSerializer.ReadObject(stream)); } }
/// <summary> /// Deserializes an <see cref="T:System.Object" /> using the specified <see cref="T:System.IO.Stream" />. /// </summary> /// <param name="stream">The <see cref="T:System.IO.Stream" /> that the <see cref="T:System.Object" /> is being deserialized from.</param> /// <returns>The deserialized <see cref="T:System.Object" />.</returns> public Launcher Deserialize(Stream stream) { using (stream) { return((Launcher)DCSerializer.ReadObject(stream)); } }
/// <summary> /// Deserializes an <see cref="T:System.Object" /> using the specified <see cref="T:System.IO.Stream" />. /// </summary> /// <param name="stream">The <see cref="T:System.IO.Stream" /> that the <see cref="T:System.Object" /> is being deserialized from.</param> /// <returns>The deserialized <see cref="T:System.Object" />.</returns> public ApplicationSettings Deserialize(Stream stream) { using (stream) { return((ApplicationSettings)DCSerializer.ReadObject(stream)); } }
/// <summary> /// Deserializes an <see cref="T:System.Object" /> using the specified <see cref="T:System.IO.Stream" />. /// </summary> /// <param name="stream">The <see cref="T:System.IO.Stream" /> that the <see cref="T:System.Object" /> is being deserialized from.</param> /// <returns>The deserialized <see cref="T:System.Object" />.</returns> public ScriptContainer Deserialize(Stream stream) { using (stream) { return((ScriptContainer)DCSerializer.ReadObject(stream)); } }
/// <summary> /// Deserializes a file using the specified <see cref="Stream" />. /// </summary> /// <param name="stream">The <see cref="Stream" /> to the specified file and what <see cref="FileMode" /> it's using.</param> /// <returns>The deserialized object.</returns> /// <exception cref="ArgumentNullException">The stream being used can't be null!</exception> public override CelestialBody Deserialize(Stream stream) { return((CelestialBody)DCSerializer.ReadObject(stream)); }