Yes, of course, you can have a DataMember interface inside a DataContract .. Then you must specify all implementations of the interface in KnownType attributes ...
[DataContract] [KnownType(typeof(ActivityDC))] [KnownType(typeof(StepDC))] [KnownType(typeof(WaveDC))] public class CampaignDC : AuditedEntityBaseDC { [DataMember] public IList<IActivityDC> Activities { get; set; }
David source share