blob: 92a3bfec90eec585e12909739895de3c5c2df464 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace Test
{
public static class Program
{
public static int Main ()
{
var m = typeof (Program).GetMethod ("Test");
var attr = m.GetCustomAttribute<IteratorStateMachineAttribute> ();
if (attr != null)
return 1;
return 0;
}
public static IEnumerable<object> Test ()
{
yield return null;
}
}
}
|