Bump corefx
[mono.git] / mcs / class / System.Data / corefx / FieldNameLookup.cs
1 namespace System.Data.ProviderBase
2 {
3         partial class FieldNameLookup
4         {
5                 public int IndexOfName(string fieldName)
6                 {
7                         if (null == _fieldNameLookup)
8                         {
9                                 GenerateLookup();
10                         }
11                         // via case sensitive search, first match with lowest ordinal matches
12                         object value = _fieldNameLookup[fieldName];
13                         return ((null != value) ? (int)value : -1);
14                 }
15         }
16 }