Ejemplo n.º 1
0
        public static async Task Convert(IFormatReader reader, IFormatWriter writer)
        {
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            await reader.Begin();

            await writer.Begin();

            await writer.WriteAllAsync(reader);

            await writer.End();
        }