public interface IDataService { method a method b method c method etc } internal sealed class DataService : IDataService { method a method b method c method etc }
Quote:To implement an interface member, the corresponding member of the implementing class must be public, non-static, and have the same name and signature as the interface member.
// This works IDataService myService = new DataService();
IDataService id = new DataService()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)