protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer) { byte[] buf = new byte[Size]; int amountRead = reader.Read(buf, 0, Size); if (amountRead != Size) { throw new InvalidOperationException("End of file reading padding (size " + Size + ")"); } }
protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer) { byte[] buf=new byte[Size]; int amountRead=reader.Read(buf, 0, Size); if ( amountRead != Size ) throw new InvalidOperationException("End of file reading padding (size "+Size+")"); }