public interface IDataService { method a method b method c method etc } internal sealed class DataService : IDataService { method a method b method c method etc }
IDataService id = new DataService()
// This works IDataService myService = new DataService();
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.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)