object this[string name] { get; }
bool GetBoolean(int i);
byte GetByte(int i);
- long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length);
+ long GetBytes(int i, long fieldOffset, byte[]? buffer, int bufferoffset, int length);
char GetChar(int i);
- long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length);
+ long GetChars(int i, long fieldoffset, char[]? buffer, int bufferoffset, int length);
System.Data.IDataReader GetData(int i);
string GetDataTypeName(int i);
System.DateTime GetDateTime(int i);
public abstract object this[string name] { get; }
public abstract bool GetBoolean(int i);
public abstract byte GetByte(int i);
- public abstract long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
+ public abstract long GetBytes(int i, long dataIndex, byte[]? buffer, int bufferIndex, int length);
public abstract char GetChar(int i);
- public abstract long GetChars(int i, long dataIndex, char[] buffer, int bufferIndex, int length);
+ public abstract long GetChars(int i, long dataIndex, char[]? buffer, int bufferIndex, int length);
public System.Data.IDataReader GetData(int i) { throw null; }
public abstract string GetDataTypeName(int i);
public abstract System.DateTime GetDateTime(int i);
return ((byte)_values[i]);
}
- public override long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length)
+ public override long GetBytes(int i, long dataIndex, byte[]? buffer, int bufferIndex, int length)
{
int cbytes = 0;
int ndataIndex;
public override char GetChar(int i) => ((string)_values[i])[0];
- public override long GetChars(int i, long dataIndex, char[] buffer, int bufferIndex, int length)
+ public override long GetChars(int i, long dataIndex, char[]? buffer, int bufferIndex, int length)
{
// if the object doesn't contain a char[] then the user will get an exception
string s = (string)_values[i];
public abstract byte GetByte(int i);
- public abstract long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
+ public abstract long GetBytes(int i, long dataIndex, byte[]? buffer, int bufferIndex, int length);
public abstract char GetChar(int i);
- public abstract long GetChars(int i, long dataIndex, char[] buffer, int bufferIndex, int length);
+ public abstract long GetChars(int i, long dataIndex, char[]? buffer, int bufferIndex, int length);
public IDataReader GetData(int i) => GetDbDataReader(i);
int GetOrdinal(string name);
bool GetBoolean(int i);
byte GetByte(int i);
- long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length);
+ long GetBytes(int i, long fieldOffset, byte[]? buffer, int bufferoffset, int length);
char GetChar(int i);
- long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length);
+ long GetChars(int i, long fieldoffset, char[]? buffer, int bufferoffset, int length);
Guid GetGuid(int i);
short GetInt16(int i);
int GetInt32(int i);