public IEnumerator<T> GetEnumerator() { if (array != null) { for (int i = 0; i < size; i++) { yield return array[i]; } } }