title: Share enum between client and WCF service?
body: <p>I am having problems sharing my public enum class from my WCF service down to my client program.
  (I want to be able to access every enum attributes from my client program). (I have added my service as i Service Reference).
  (For testing I only have two EnumMemer - I know..)</p>
  
  <p>I have this in my Service.svc.cs file:</p>
  
  <pre><code>namespace ITHelperService
  {
  [DataContract]
  public class Service : IService
  {
      [DataMember]
      public CommandsEnums comands;
  
      [DataContract(Name="CommandsEnums")]
      public enum CommandsEnums
      {
          [EnumMember]
          Get_IPConfig,
          [EnumMember]
          Get_IPConfig_all,
          Get_BIOSVersion,
          Get_JavaVersion,
          Get_RecentInstalledPrograms,
          Get_RecentEvents,
          Get_WEIScore,
          Do_Ping,
          Do_NSLookup
      }
  }
  }
  </code></pre>
  
  <p>And this is my IService.cs file:</p>
  
  <pre><code>namespace ITHelperService
  {
  [ServiceContract]
  [ServiceKnownType(typeof(ITHelperService.Service.CommandsEnums))]
  public interface IService
  {
  
  
  }
  }
  </code></pre>
  
  <p>I have searched the Internet about this problem and it seems that the above should do the trick.
  But I can't access them in my client program. It doesn't show up in the intellisense.</p>
  
  <p>Any input please?</p>