title: The right way to send generic data types with protobuf3 in C#/.NET
body: <p>I'm developing an application using a plugins architecture and I want to send objects between client and server without knowing the type of the object being sent.</p>
  
  <p>Is there a way to send generic data type ?</p>
  
  <p>According to Microsoft pages, the <code>Any</code> field could be an answer to this problem, instead of using a string and a custom serialization/deserialization implementation to send these objects. However, I didn't find the provided <strong>c#</strong> examples understandable. I tried to solve the problem this way:</p>
  
  <pre><code>ClassTest myClassTest = new ClassTest();
  Any packToSend = Any.Pack(myClassTest);
  
  return Task.FromResult(new UnknownTEST
  {
     Pathm = hai
  }); ;
  </code></pre>
  
  <p>But it seems that I need to implement the <code>IMessage</code> interface in my class and I don't know how to do this.</p>
  
  <p>If anyone could provide a basic example to help me understand how to do this, that would be great.</p>
  
  <p>Thanks !</p>