コード例 #1
0
        protected void MarkAccessedKey(int ordinal)
        {
            string name;

            if (_lookup.TryGetName(ordinal, out name))
            {
                MarkAccessedKey(name);
            }
        }
コード例 #2
0
        /// <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);
        }