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

42 lines
592 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Program {
public static void Main ()
{
}
static void Foo (TypeDefinition type)
{
var res = from MethodDefinition meth in type.Methods
select meth;
}
}
interface IFoo
{
}
static class Extension
{
public static IEnumerable<T> Cast<T> (this IFoo i)
{
return null;
}
}
public class MethodDefinition
{
}
public class TypeDefinition
{
public MethodDefinitionCollection Methods { get { return null; } set {} }
}
public class MethodDefinitionCollection : CollectionBase
{
}