Skip 메서드가 IEnumerable 인터페이스를 찾고 있습니다.IEnumerable 인터페이스와 Mono의 Skip 메서드
IList 공용인터페이스이므로이 방법에 액세스 할 수 있다고 생각했습니다. 여기
private static void SkipFirst(IList<float> list)
{
IList<float> skippedFirst = list.Skip(1);
}
를 오류입니다 :
어쨌든 다음 코드는 모노에 컴파일에 실패
error CS1061: Type
System.Collections.Generic.IList<float>' does not contain a definition for
Skip' and no extension methodSkip' of type
System.Collections.Generic.IList' could be found (are you missing a using directive or an assembly reference?)
내가 잘못하고있는 중이 야 무슨 일이? IList
인터페이스에서 해당 메소드에 액세스하려면 어떻게해야합니까?
'Syst em.Core' 패키지와'cs 파일에서 System.Linq' 사용하기 – sll