델리게이트를 정의하고 이와 같은 쿼리를 작성할 수 있습니다. Func<T, TResult>
대리자가 인수로 문자열을 복용하고 부울을 반환하는 경우where 절의 델리게이트
Func<string, bool> filter = s => s.Length == 5;
IEnumerable<string> query = names.Where(filter)
.Select(x => x.ToUpper());
내 질문입니다, 왜 내가 말할 수 없습니다
delegate bool D(string s);
D d = new D(delegate(string s) { return s.Length == 1; });
IEnumerable<string> query = names.Where(d).Select...
?
실제로는 SO 자신의 목적을 달성 도움이 유일한 사람 롤 – toddmo