title: Passing enums via WCF service
body: <p>I need to define an Enum in a project seprate to my WCF service project. I am creating an object which contains the enum and other data. when i pass the object via the WCF service to the client i get a not found. </p>
  
  <p>Enum:</p>
  
  <pre><code>public enum Color
  {
      Red = 1,
      Blue,
      Green,
  }
  </code></pre>
  
  <p>Object to be Passed:</p>
  
  <pre><code>public class MyObject
  {
      public Color ColorEnum { get; set; }
      public string Name{ get; set; }
  }
  </code></pre>
  
  <p>Only if i give the object a default value of say ColourEnum = Color.Red does the service work. if it not set it breaks. i know this is a workaround but im looking for a solution that makes more sense instead of setting an arb value. and i just want to understand why it breaks</p>
  
  <p>Thanks in advance</p>