int GetSqlValues (object[] values)
{
ValidateState ();
EnsureDataAvailable ();
if (values == null)
throw new ArgumentNullException ("values");
int count = 0;
int columnCount = command.Tds.Columns.Count;
int arrayCount = values.Length;
if (arrayCount > columnCount)
count = columnCount;
else
count = arrayCount;
for (int i = 0; i < count; i += 1)
values [i] = GetSqlValue (i);
return count;
}