protected void MarkAccessedKey(int ordinal) { string name; if (_lookup.TryGetName(ordinal, out name)) { MarkAccessedKey(name); } }
/// <summary> /// Gets the name of the field to find. /// </summary> /// <param name="ordinal">The zero-based field /// ordinal to find.</param> public string GetName(int ordinal) { string name; if (!_lookup.TryGetName(ordinal, out name)) { throw Error.ColumnOrdinalDoesNotExistInResultSet(ordinal); } return(name); }