<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1621</ErrorName>
  <Examples>
    <string>// CS1621: The yield statement cannot be used inside anonymous method blocks
// Line: 12

using System;
using System.Collections;

public class Test
{
	public IEnumerator Foo ()
	{
		Call (() =&gt; {
			yield break;
		});

		yield break;
	}

	void Call (Action a)
	{
	}
}</string>
    <string>// CS01621: The yield statement cannot be used inside anonymous method blocks
// Line: 13

using System.Collections;

delegate object D ();

class C: IEnumerable
{
   public IEnumerator GetEnumerator ()
   {
      D d = delegate {
		yield return this;
	  };
   }
}
</string>
  </Examples>
</ErrorDocumentation>