.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

60 lines
1.0 KiB

using System;
using System.Collections;
using System.Collections.Generic;
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
{
public class CS9_ExtensionGetEnumerator
{
public class NonGeneric
{
}
public class Generic<T>
{
}
public void Test(NonGeneric c)
{
foreach (object item in c)
{
Console.WriteLine(item);
}
}
public void Test(Generic<int> c)
{
foreach (int item in c)
{
Console.WriteLine(item);
}
}
#if !NET40
public async void TestAsync(Generic<int> c)
{
await foreach (int item in c)
{
Console.WriteLine(item);
}
}
#endif
}
public static class CS9_ExtensionGetEnumerator_Ext
{
public static IEnumerator GetEnumerator(this CS9_ExtensionGetEnumerator.NonGeneric c)
{
throw null;
}
public static IEnumerator<T> GetEnumerator<T>(this CS9_ExtensionGetEnumerator.Generic<T> c)
{
throw null;
}
#if !NET40
public static IAsyncEnumerator<T> GetAsyncEnumerator<T>(this CS9_ExtensionGetEnumerator.Generic<T> c)
{
throw null;
}
#endif
}
}