<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1629</ErrorName>
  <Examples>
    <string>// CS1629: Unsafe code may not appear in iterators
// Line: 8
// Compiler options: -unsafe

using System.Collections;

class X {
	static IEnumerator GetIt ()
	{
	    unsafe {
		yield return 1;
	    }
	}
	
}</string>
    <string>// CS1629: Unsafe code may not appear in iterators
// Line: 8
// Compiler options: -unsafe

using System.Collections;

class X {
	static unsafe IEnumerator GetIt ()
	{
	    yield return 1;
	}
	
}</string>
    <string>// CS1629: Unsafe code may not appear in iterators
// Line: 17
// Compiler options: -unsafe

using System.Collections.Generic;

public unsafe class TestClass
{
	public struct Foo {
		public bool C;
	}

	Foo *current;

	public IEnumerable&lt;Foo&gt; EnumeratorCurrentEvents ()
	{
		yield return *current;
	}
}</string>
  </Examples>
</ErrorDocumentation>