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

◆ Bind()

override void System.Data.NameNode.Bind ( DataTable table,
List< DataColumn > list )
inlinepackage

Definition at line 29 of file NameNode.cs.

30 {
32 if (table == null)
33 {
34 throw ExprException.UnboundName(_name);
35 }
36 try
37 {
39 }
40 catch (Exception e)
41 {
42 _found = false;
44 {
45 throw;
46 }
47 throw ExprException.UnboundName(_name);
48 }
49 if (_column == null)
50 {
51 throw ExprException.UnboundName(_name);
52 }
54 _found = true;
55 int i;
56 for (i = 0; i < list.Count; i++)
57 {
58 DataColumn dataColumn = list[i];
59 if (_column == dataColumn)
60 {
61 break;
62 }
63 }
64 if (i >= list.Count)
65 {
67 }
68 }
void Add(TKey key, TValue value)
static bool IsCatchableExceptionType(Exception e)
Definition ADP.cs:790
DataColumnCollection Columns
Definition DataTable.cs:327
void BindTable(DataTable table)
DataColumn _column
Definition NameNode.cs:13

References System.Data.NameNode._column, System.Data.NameNode._found, System.Data.NameNode._name, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Data.ExpressionNode.BindTable(), System.Data.DataColumn.ColumnName, System.Data.DataTable.Columns, System.Data.Common.ADP.IsCatchableExceptionType(), System.list, System.Data.ExpressionNode.table, and System.Data.ExprException.UnboundName().