FormatWriteLengthExceptionMessage() public static method

public static FormatWriteLengthExceptionMessage ( object sender, uint start, uint end, uint length ) : string
sender object
start uint
end uint
length uint
return string
コード例 #1
0
        private ApplicationException testLengthCheck(object sender, BinaryEndianWriter bw)
        {
            uint len = this.Length;

            if (this.StreamPos(bw.BaseStream) - _lengthCheckStart != len)
            {
                return(new ApplicationException(QbFile.FormatWriteLengthExceptionMessage(sender, _lengthCheckStart, this.StreamPos(bw.BaseStream), len)));
            }
            else
            {
                return(null);
            }
        }