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

◆ GetNext()

bool System.Data.ConstraintEnumerator.GetNext ( )
inlineinherited

Definition at line 21 of file ConstraintEnumerator.cs.

22 {
23 _currentObject = null;
24 while (_tables != null)
25 {
26 if (_constraints == null)
27 {
28 if (!_tables.MoveNext())
29 {
30 _tables = null;
31 return false;
32 }
33 _constraints = ((DataTable)_tables.Current).Constraints.GetEnumerator();
34 }
36 {
37 _constraints = null;
38 continue;
39 }
40 Constraint constraint = (Constraint)_constraints.Current;
41 if (!IsValidCandidate(constraint))
42 {
43 continue;
44 }
45 _currentObject = constraint;
46 return true;
47 }
48 return false;
49 }
virtual bool IsValidCandidate(Constraint constraint)

References System.Data.ConstraintEnumerator._constraints, System.Data.ConstraintEnumerator._currentObject, System.Data.ConstraintEnumerator._tables, System.Collections.IEnumerator.Current, System.Data.ConstraintEnumerator.IsValidCandidate(), and System.Collections.IEnumerator.MoveNext().

Referenced by System.Data.UniqueConstraint.CanBeRemovedFromCollection().