2
The type or namespace name 'c' could not be found (are you missing a using directive or an assembly reference?)
아래에서 코드를 실행하려고하면 위에서 오류가 발생합니다.람다 표현식 (내부 람다 표현식)
this.Calendar.Entries.Any<CalendarEntry>(c => c.Date.Date == date.Date && Filters.Any<Type>(f => typeof(c).IsInstanceOfType(f)));
아무도 왜 작동하지 않는지 알고 있습니까? 내가 그걸 작동시킬 수 있다면?
감사합니다.
편집 :
그래도 지금은 처음에 쓴대로 작동하지 않는 이유를 알고,하지만이처럼 쓸 때 그것은 작동 :
Filters.Any<Type>(f => this.Calendar.Entries.Where<CalendarEntry>(c => c.Date.Date == date.Date).SingleOrDefault().GetType().IsInstanceOfType(f));
감사합니다. 그것은 작동합니다! 나 바보 같은, typeof를 사용하는 방법을 잊었 :) –