ADBaseLibrary.Matroska.MatroskaExtensions.GenIo C# (CSharp) Method

GenIo() private static method

private static GenIo ( string message, BinaryReader stream ) : IOException
message string
stream BinaryReader
return IOException
        private static IOException GenIo(string message, BinaryReader stream, params object[] pars)
        {
            long pos = stream.BaseStream.Position;
            object[] obj = new object[pars.Length + 1];
            Array.Copy(pars,0,obj,1,pars.Length);
            obj[0] = pos;
            return new IOException(string.Format(message,obj));
        }