Код: Выделить всё
class A1
{
public virtual T? F1(T? t) where T : struct { throw new NotImplementedException(); }
public virtual T? F1(T? t) where T : class { throw new NotImplementedException(); }
}
Код: Выделить всё
class A1
{
public virtual T? F1(T t) where T : struct { throw new NotImplementedException(); }
public virtual T? F1(T t) where T : class { throw new NotImplementedException(); }
}
Разница Является ли это во втором случае аргументы не являются облегательными.>
Подробнее здесь: https://stackoverflow.com/questions/793 ... xplanation
Мобильная версия