Declare method using T and where [Answered] - C#