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

◆ CheckForClosureOnExpressionTables()

bool System.Data.DataTable.CheckForClosureOnExpressionTables ( List< DataTable > tableList)
inlineprivateinherited

Definition at line 4903 of file DataTable.cs.

4904 {
4905 foreach (DataTable table in tableList)
4906 {
4907 foreach (DataColumn column in table.Columns)
4908 {
4909 if (column.Expression.Length == 0)
4910 {
4911 continue;
4912 }
4913 DataColumn[] dependency = column.DataExpression.GetDependency();
4914 for (int i = 0; i < dependency.Length; i++)
4915 {
4916 if (!tableList.Contains(dependency[i].Table))
4917 {
4918 return false;
4919 }
4920 }
4921 }
4922 }
4923 return true;
4924 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)

References System.Data.DataTable.Columns, and System.Collections.Generic.Dictionary< TKey, TValue >.Contains().

Referenced by System.Data.DataTable.CheckForClosureOnExpressions(), and System.Data.DataTable.SerializeTableSchema().