static void CreateElementsAndAddToStack(MyCollection <Place> stack) { Place[] elements = CreateElementsArray(); stack.Add(elements); }
public MyEnumerator(MyCollection <T> collection) => Current = Begin = collection.First;
static void ClearStack(MyCollection <Place> stack) => stack.Clear();