21 references to Length
System.Data (21)
fx\src\data\System\Data\Odbc\OdbcCommand.cs (1)
626if(null == parameterBuffer || parameterBuffer.Length < parameterBufferSize) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (10)
814int cbMaxData = buffer.Length - 4; 821if (GetData(i, ODBC32.SQL_C.WCHAR, buffer.Length - 2, out lengthOrIndicator)) { 861gotData = GetData(i, ODBC32.SQL_C.WCHAR, buffer.Length - 2, out lengthOrIndicator); 1192cbReadMax = (int)Math.Min(cbLength, internalNativeBuffer.Length - 4); 1200cbReadMax = (int)Math.Min(cbLength, internalNativeBuffer.Length - 2); 1283int cbBufferLen = Buffer.Length - 4; 1490return GetData(i, sqlctype, Buffer.Length - 4, out dummy); 1520Debug.Assert(cb <= Buffer.Length-2, "GetData needs to Reallocate. Perf bug"); 2048Debug.Assert(buffer.Length >= 264, "Native buffer to small (_buffer.Length < 264)"); 2214Debug.Assert(buffer.Length >= 544, "Native buffer to small (_buffer.Length < 544)");
fx\src\data\System\Data\Odbc\OdbcUtils.cs (8)
25return checked((short)Length); 40Debug.Assert((Length >= cb), "Native buffer too small "); 41cb = Math.Min(cb/2, (Length-2)/2); 48Debug.Assert((Length >= cb), "Native buffer too small "); 49cb = Math.Min(cb, Length); 178Debug.Assert(rgChars.Length < (base.Length - valueOffset), "attempting to extend parameter buffer!"); 189Debug.Assert(rgChars.Length < (base.Length - valueOffset), "attempting to extend parameter buffer!"); 217Debug.Assert(length < (base.Length - valueOffset), "attempting to extend parameter buffer!");
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (2)
566SafeNativeMethods.ZeroMemory(ptr, (IntPtr)Length); 686if ((offset < 0) || (count < 0) || (Length < checked(offset + count))) {