System.Data.DataTable.CheckForClosureOnExpressionTables C# (CSharp) Method

CheckForClosureOnExpressionTables() private method

private CheckForClosureOnExpressionTables ( List tableList ) : bool
tableList List
return bool
        private bool CheckForClosureOnExpressionTables(List<DataTable> tableList)
        {
            Debug.Assert(tableList != null, "tableList shouldnot be null");

            foreach (DataTable datatable in tableList)
            {
                foreach (DataColumn dc in datatable.Columns)
                {
                    if (dc.Expression.Length != 0)
                    {
                        DataColumn[] dependency = dc.DataExpression.GetDependency();
                        for (int j = 0; j < dependency.Length; j++)
                        {
                            if (!(tableList.Contains(dependency[j].Table)))
                            {
                                return false;
                            }
                        }
                    }
                }
            }
            return true;
        }
DataTable