linux-packaging-mono/mcs/tests/gtest-iter-12.cs

15 lines
293 B
C#
Raw Normal View History

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;
}
}