<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS1673</ErrorName>
  <Examples>
    <string>// CS1673-2.cs: Anonymous methods inside structs cannot access instance members of `this'. Consider copying `this' to a local variable outside the anonymous method and using the local instead
// Line: 19
using System;

public delegate void Hello ();

struct Foo
{
	public int ID;

	public Foo (int id)
	{
		this.ID = id;
	}

	public void Test (Foo foo)
	{
		Hello hello = delegate {
			Hello (3);
		};
		hello ();
	}

	public void Hello (int value)
	{
		if (ID != value)
			throw new InvalidOperationException ();
	}

	public override string ToString ()
	{
		return String.Format ("Foo ({0})", ID);
	}
}

class X
{
	static void Main ()
	{
		Foo foo = new Foo (3);
		foo.Test (new Foo (8));
	}
}
</string>
    <string>// cs1673.cs: Anonymous methods inside structs cannot access instance members of `this'. Consider copying `this' to a local variable outside the anonymous method and using the local instead
// Line: 
using System;

struct S {
	delegate void T ();

	int f;

	public int Test ()
	{
		T t = delegate {
			f = 1;
		};
		return 0;
	}
	
	static void Main ()
	{
	}
}
	
		
</string>
  </Examples>
</ErrorDocumentation>