Generic Singleton Fasade design pattern
- by Paul
Hi I try write singleton fasede pattern with generics. I have one problem, how can I call method from generic variable.
Something like this:
T1 t1 = new T1();
//call method from t1
t1.Method();
In method SingletonFasadeMethod I have compile error:
Error 1 'T1' does not contain a definition for 'Method' and no extension method 'Method' accepting…