That was an example.
My Requirement is I want to get accessed to a method eg: "GetCustomers" ,which is in some class namely "C2" ,
Which returns List<Customers>.
So I have created a generic Interface like below
Now I have Implemented this in C2 class.
Now from client I do not want to call C2 class directly .
For this reason , I want to create a another class namely 'FactoryClass".
public class factoryclass
static public ITest<T> SomeMethod<T>(T someDatavalue)
// here c2 is a class, which has a method that returns customerslist
ITest<Customer> boo = new C2();
Now from client how to use this object.
I want something similar like below
ITest<T> foo = Factory.SomeMethod<object>(1); // here you guys need to help , how to code client
Ogipansrk, if this helps please login to Mark As Answer. | Alert Moderator