Xamarin Public Jenkins (auto-signing) 536cd135cc Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
2017-08-21 15:34:15 +00:00

16 lines
358 B
C#

namespace System.Data.ProviderBase
{
partial class FieldNameLookup
{
public int IndexOfName(string fieldName)
{
if (null == _fieldNameLookup)
{
GenerateLookup();
}
// via case sensitive search, first match with lowest ordinal matches
object value = _fieldNameLookup[fieldName];
return ((null != value) ? (int)value : -1);
}
}
}