I was wondering if it was possible to create a class wrapper around a singleton class that is usually called by using Activator.CreateInstance method.
I would like to see if it was possible to create a class that would accomplish the same but like the following manner. I know I can just either use the above code or create a static class that will do the same, but was curious if this was possible.Code:SingletonClass sc = (SingletonClass)Activator.CreateInstance(Type.GetTypeFromProgID("assembly.SingletonClass"));
Code:SingletonClass sc = new SingletonClassRef();




Reply With Quote