<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1686</ErrorName>
  <Examples>
    <string>// CS1686: Local variable or parameter `a' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression
// Line: 11
// Compiler options: -unsafe

delegate void D ();

unsafe class X {
	public D T (int a)
	{
		return delegate {
			int x = a;
		};
		
		int *y = &amp;a;
	}
}
</string>
    <string>// CS1686: Local variable or parameter `i' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression
// Line: 18
// Compiler options: -unsafe

unsafe struct S
{
	public int i;
}

class C
{
	unsafe delegate int* D ();

	static void Main ()
	{
		unsafe {
			S str = new S ();
			D d = delegate { return &amp;str.i; };
		}
	}
}
</string>
    <string>// CS1686: Local variable or parameter `str' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression
// Line: 11
// Compiler options: -unsafe

using System;

unsafe struct S
{
	public fixed int i [10];
}

class C
{
	static void Main ()
	{
		unsafe {
			S str;
			Func&lt;int&gt; e = () =&gt; str.i [3];
		}
	}
}
</string>
    <string>// CS1686: Local variable or parameter `i' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression
// Line: 16
// Compiler options: -unsafe

class X {
	delegate void S ();

	unsafe void M ()
	{
		int i;
		int * j ;

		S s = delegate {
			i = 1;
		};
		j = &amp;i;
	}

	static void Main () {}
}
</string>
    <string>// CS1686: Local variable or parameter `a' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression
// Line: 11
// Compiler options: -unsafe

delegate void D ();

unsafe class X {
	public D T (int a)
	{
		return delegate {
			int *x = &amp;a;
		};
	}

	static void Main ()
	{ }
}
</string>
    <string>// CS1686: Local variable or parameter `a' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression
// Line: 11
// Compiler options: -unsafe

delegate void D ();

unsafe class X {
	public D T (int a)
	{
		int *y = &amp;a;
		
		return delegate {
			int x = a;
		};
	}
}
</string>
  </Examples>
</ErrorDocumentation>