Where are you getting the T from? There is no T in harumscarum's code.
Essentially, you have two options, as indicated by W3bbo and stevo_.
The first is to make the method generic:
public static List<IEye> GetSomeStuff<T>() where T : IEye, new()<BR>{<BR> IEye obj = new T();<BR>}This does however require that the caller knows the type at compile time (well, technically you can use reflection to construct the generic method invocation but that's even more complicated, not to mention slow).
The second is to use the Activator:
public static List<IEye> GetSomeStuff(Type myType)<BR>{<BR> IEye obj = (IEye)Activator.CreateInstance(myType);<BR>}That's the option you should go with if the caller doesn't know the type at compile time.