<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0079</ErrorName>
  <Examples>
    <string>// CS0079: The event `Foo.Event2' can only appear on the left hand side of `+=' or `-=' operator
// Line: 11

using System;

public class Foo {
	EventHandler event2;

	public Foo ()
	{
		Event2 = null;
	}

	public event EventHandler Event2 {
		add { event2 += value; }
		remove {event2 -= value; }
	}
}
</string>
    <string>// CS0079: The event `C.ev' can only appear on the left hand side of `+=' or `-=' operator
// Line: 14

class C
{
	static event System.EventHandler ev
	{
		add { }
		remove { }
	}

	static void Main ()
	{
		ev *= null;
	}
}
</string>
    <string>// CS0079: The event `Foo.BaseFoo.Changed' can only appear on the left hand side of `+=' or `-=' operator
// Line: 16

using System;

namespace Foo
{
	public delegate void VoidHandler ();

	public class BaseFoo
	{
		public extern event VoidHandler Changed;

		public string Name {
			set {
				Changed ();
			}
		}
	}
}
</string>
    <string>// CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator
// Line: 19
 
using System;

class ErrorCS0079 {
	public delegate void Handler ();
	event Handler privateEvent;
	public event Handler OnFoo {
		add {
			privateEvent += value;
		}
		remove {
			privateEvent -= value;
		}
	}
	void Callback() {
		if (privateEvent != null) 
			OnFoo();
	}
	
	public static void Main () {
	}
}

		
</string>
    <string>// CS0079: The event `Foo.BaseFoo.Changed' can only appear on the left hand side of `+=' or `-=' operator
// Line: 16

using System;

namespace Foo
{
	public delegate void VoidHandler ();

	public abstract class BaseFoo
	{
		public abstract event VoidHandler Changed;

		public string Name {
			set {
				Changed ();
			}
		}
	}
}
</string>
  </Examples>
</ErrorDocumentation>