Используя обобщения (Generics).
csharp
Register or sign in to get access to full answers for all questions from the question bank.