/// <summary> /// Loads the specified stream. /// </summary> /// <param name="type">The type.</param> /// <param name="stream">The stream.</param> /// <param name="format">The format.</param> public object Load(Type type, Stream stream, IFormat format) { ITypeReader reader = this.GetReader(type); if (reader.BypassFormat) { format = Format.None; } using (IFormatReader formatReader = format.CreateReader(stream)) { return(reader.Read(formatReader)); } }