I want to expose an enum to my client application without referencing it in my WCF Service. However the enum is not visible in the client application. Below is my code:
[DataContract]
public enum Columns
{
[EnumMember]
Column1= 0,
[EnumMember]
Column2= 1
}
[ServiceKnownType(typeof(Columns))]
public interface IService
{
[OperationContract]
Response GetObjects(Request request);
}
Please let me know what am I doing wrong?