title: protobuf-net: how to serialize an EventHandler
body: <p>I am attempting to serialize a class with a EventHandler using protobuf-net, using the following code:</p>
  
  <pre><code>    [ProtoContract]
      class Thing
      {
          [ProtoMember(5, AsReference = true)]
          public EventHandler _DoSomething;
  
          public event EventHandler DoSomething
          {
              add { _DoSomething += value; }
              remove { _DoSomething -= value; }
          }
  
          public void PerformSomething(object sender, EventArgs args)
          {
          }
      }
  
      [TestMethod]
      public void SerializingAClassWithAnEvent_Deserializes()
      {
          var Guy1 = new Thing() {};
          var Guy2 = new Thing() {};
          Guy2.DoSomething += Guy1.PerformSomething;
          Assert.IsNotNull(Guy2._DoSomething);
  
          MemoryStream buffer = new MemoryStream();
          Serializer.Serialize(buffer, Guy2);
          MemoryStream afterStream = new MemoryStream(buffer.ToArray());
          var outGuy = Serializer.Deserialize&lt;Thing&gt;(afterStream);
  
          Assert.IsNotNull(outGuy._DoSomething);
      }
  </code></pre>
  
  <p>This code compiles and runs fine but the second assertion fails because the _DoSomething EventHandler is still null. What am I missing?</p>