Hi,
i want to return the current instance to my interface in the implementation class. Anything wrong with the following? in terms of design or ..?
Code:public interface IMyInterface { IMyInterface GetInstance(); } public class MyInterface: { public static MyInterface Instance = null; public MyInterface GetInstance() { return Instance; } public MyInterface() { Instance = this; } }




Reply With Quote