2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / gtest-326-lib.cs
blobae26be929764b0b869530f1aec4524888dca3edc
1 // Compiler options: /t:library
2 using System;
3 using SCG = System.Collections.Generic;
5 namespace C5
7 public abstract class EnumerableBase<T> : SCG.IEnumerable<T>
9 public abstract SCG.IEnumerator<T> GetEnumerator ();
11 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
13 return GetEnumerator();
17 public class ArrayBase<T> : EnumerableBase<T>
19 public override SCG.IEnumerator<T> GetEnumerator ()
21 yield break;
25 public class ArrayList<T> : ArrayBase<T>
27 public override SCG.IEnumerator<T> GetEnumerator ()
29 return base.GetEnumerator ();