Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetOrdinal()

int System.Data.ProviderBase.FieldNameLookup.GetOrdinal ( string fieldName)
inline

Definition at line 29 of file FieldNameLookup.cs.

30 {
31 if (fieldName == null)
32 {
33 throw ADP.ArgumentNull("fieldName");
34 }
35 int num = IndexOf(fieldName);
36 if (-1 == num)
37 {
38 throw ADP.IndexOutOfRange(fieldName);
39 }
40 return num;
41 }
static ArgumentNullException ArgumentNull(string parameter)
Definition ADP.cs:699
static IndexOutOfRangeException IndexOutOfRange(string error)
Definition ADP.cs:727

References System.Data.Common.ADP.ArgumentNull(), System.Data.ProviderBase.FieldNameLookup.IndexOf(), and System.Data.Common.ADP.IndexOutOfRange().

Referenced by System.Data.Common.DataRecordInternal.GetOrdinal().