<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1706</ErrorName>
  <Examples>
    <string>// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
// Line: 14

public delegate void Proc();

public class AAttribute : System.Attribute
{
	public AAttribute(Proc p)
	{ }
}

public class Class
{
	[A((object)delegate { return; })]
	public void Foo()
	{
	}
} 
</string>
    <string>// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
// Line: 8

delegate void D ();

class C
{
	const object c = new D (delegate {});
}
</string>
    <string>// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
// Line: 13

using System;

delegate int TestDelegate();

class MyAttr : Attribute
{
	public MyAttr (TestDelegate d) { }
}

[MyAttr (() =&gt; 1)]
class C
{
}

</string>
    <string>// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
// Line: 13

using System;

delegate void TestDelegate();

class MyAttr : Attribute
{
    public MyAttr (TestDelegate d) { }
}

[MyAttr (delegate {} )]
class C
{
}

</string>
  </Examples>
</ErrorDocumentation>