System.Data.ProviderBase.FieldNameLookup.FieldNameLookup C# (CSharp) Method

FieldNameLookup() public method

public FieldNameLookup ( IDataRecord reader, int defaultLocaleID ) : System.Collections
reader IDataRecord
defaultLocaleID int
return System.Collections
        public FieldNameLookup(IDataRecord reader, int defaultLocaleID)
        {
            int length = reader.FieldCount;
            string[] fieldNames = new string[length];
            for (int i = 0; i < length; ++i)
            {
                fieldNames[i] = reader.GetName(i);
                Debug.Assert(null != fieldNames[i]);
            }
            _fieldNames = fieldNames;
            _defaultLocaleID = defaultLocaleID;
        }

Same methods

FieldNameLookup::FieldNameLookup ( System columnNames, int defaultLocaleID ) : System.Collections
FieldNameLookup::FieldNameLookup ( string fieldNames, int defaultLocaleID ) : System.Collections