title: Using Delegate.Combine error Event can only appear on the left-hand side of += or -=?
body: <p>I am reverse-engineering a legacy application that is no longer supported and has stopped working so I can create a new one to perform the same function. I have this class that uses the following code pattern quite a lot.</p>
  
  <pre><code>        public event myEventHandler myEvent
          {
              [MethodImpl(MethodImplOptions.Synchronized)]
              add
              {
                  myEvent = (myEventHandler)Delegate.Combine(myEvent, value);
              }
              [MethodImpl(MethodImplOptions.Synchronized)]
              remove
              {
                  myEvent = (myEventHandler)Delegate.Remove(myEvent, value);
              }
          }
  </code></pre>
  
  <p>However, Visual Studio returns the error:
  <code>"myEvent can only appear on the left-hand side of += or -="</code></p>
  
  <p>Does the following code to solve this error? Is there any difference between delegate.combine and using <code>+=</code> ?</p>
  
  <pre><code>        public event myEventHandler myEvent
          {
              [MethodImpl(MethodImplOptions.Synchronized)]
              add
              {
                  myEvent += value;
              }
              [MethodImpl(MethodImplOptions.Synchronized)]
              remove
              {
                  myEvent -= value;
              }
          }
  </code></pre>