mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
18 lines
313 B
C#
18 lines
313 B
C#
// cs1622.cs: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration
|
|
// Line: 11
|
|
using System.Collections;
|
|
|
|
class X {
|
|
IEnumerator MyEnumerator (int a)
|
|
{
|
|
if (a == 0)
|
|
yield return 1;
|
|
else
|
|
return null;
|
|
}
|
|
|
|
static void Main ()
|
|
{
|
|
}
|
|
}
|