От: | Sinclair | https://github.com/evilguest/ | |
Дата: | 02.11.20 05:49 | ||
Оценка: |
public static IEnumerable<B> Fail<T, B>(IEnumerable<T> derived)
where T : B
{
return derived; // error CS0266: Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<T>' to 'System.Collections.Generic.IEnumerable<B>'. An explicit conversion exists (are you missing a cast?)
}