<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1706</ErrorName>
  <Examples>
    <string>// cs1706-2.cs: Anonymous methods are not allowed in the attribute declaration
// 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.cs: Anonymous methods are not allowed in the attribute declaration
// Line: 13

using System;

delegate void TestDelegate();

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

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

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