public virtual SqlBytes GetSqlBytes (int i)
{
//object value = GetSqlValue (i);
//if (!(value is SqlBinary))
// throw new InvalidCastException ("Type is " + value.GetType ().ToString ());
Byte[] val = (byte[])GetValue(i);
SqlBytes sb = new SqlBytes (val);
return (sb);
}
#endif // NET_2_0