int GetOrdinal (string value)
{
if (IsClosed)
throw new InvalidOperationException ("The reader is closed.");
if (value == null)
throw new ArgumentNullException ("fieldName");
int i = ColIndex (value);
if (i == -1)
throw new IndexOutOfRangeException ();
return i;
}