Код: Выделить всё
public static void MyMethod(this T football) where T : IGame
{
...
}
< /code>
Я не совсем понимаю преимущества этого кода по сравнению с этим: < /p>
public static void MyMethod(this IGame)
{
...
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... y-generics
Мобильная версия