linux-packaging-mono/mcs/tests/gtest-iter-12.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

15 lines
293 B
C#

using System;
using System.Collections.Generic;
public class H
{
public static void Main(String[] args) { }
public static IEnumerable<T> Merge<T> (IEnumerator<T> xEtor)
where T : IComparable<T>
{
int order = xEtor.Current.CompareTo (xEtor.Current);
yield return xEtor.Current;
}
}