public struct GoGroupEnumerator : System.ValueType
public struct GoGroupEnumerator : System.ValueType
foreach
(or For Each
) construct to iterate through the children of a group. In C#:
foreach (GoObject obj in aGroup) {
. . .
}
In VB.NET:
Dim obj As GoObject
For Each obj in aGroup
. . .
Next
Also, since GoGroup implements the IList
interface, you can refer to the items of the group by a zero-based index.
Remember that you must not modify the group collection, by adding, removing, or re-ordering the child objects, while you are iterating over the children. This structure type does not support comparison for equality.