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

◆ GetInheritedNamespace()

string System.Data.DataTable.GetInheritedNamespace ( List< DataTable > visitedTables)
inlineprivateinherited

Definition at line 1924 of file DataTable.cs.

1925 {
1927 if (nestedParentRelations.Length != 0)
1928 {
1929 foreach (DataRelation dataRelation in nestedParentRelations)
1930 {
1931 if (dataRelation.ParentTable._tableNamespace != null)
1932 {
1933 return dataRelation.ParentTable._tableNamespace;
1934 }
1935 }
1936 int j;
1937 for (j = 0; j < nestedParentRelations.Length && (nestedParentRelations[j].ParentTable == this || visitedTables.Contains(nestedParentRelations[j].ParentTable)); j++)
1938 {
1939 }
1940 if (j < nestedParentRelations.Length)
1941 {
1944 {
1946 }
1947 return parentTable.GetInheritedNamespace(visitedTables);
1948 }
1949 }
1950 if (DataSet != null)
1951 {
1952 return DataSet.Namespace;
1953 }
1954 return string.Empty;
1955 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
DataRelation[] NestedParentRelations
Definition DataTable.cs:586

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Runtime.Serialization.Dictionary, System.Data.DataSet.Namespace, and System.Data.DataTable.NestedParentRelations.

Referenced by System.Data.DataTable.CheckNamespaceValidityForNestedRelations().