using generic method without knowing T - C#