와 wotrking하지, RadComboBoxItemCollection는 IEnumerable을 구현하기 위해 나타납니다하지만 LINQ는 말을 나에게 오류를주고 유지 :RadComboBoxItemCollection 내가 몇 가지 확장 방법을 만드는거야 내가 RadComboBoxItemCollection 일부 오류를 받고 있어요 LINQ
"구현을 찾을 수 없습니다 소스 유형 에 대한 쿼리 패턴 'Telerik.Web.UI.RadComboBoxItemCollection' '찾을 수 없음' 범위 변수 'myItem'의 형식을 명시 적으로 지정하십시오. " 플립 사이드 RadListBoxItemCollection에이 코드
public static bool ContainsValue(this RadComboBoxItemCollection myList, string value) { bool matches = (from myItem in myList where myItem.Value == value select myItem).Count() > 0; return matches; }
에서
는
public static bool ContainsValue(this IEnumerable<RadListBoxItem> myList, string value)
{
bool matches = (from myItem in myList where myItem.Value == value select myItem).Count() > 0;
return matches;
}
내가 IEnumerable을하고 시도 잘 작동이는 LINQ 오류를 해결하지만 난이 오류를 얻을
"인스턴스 인수 : 변환 할 수 없습니다. 'Telerik.Web.UI.RadComboBoxItemCollection'에서 에 'System.Collections.Generic.IEnumerable' "
권리, 내가 for 루프, Telerik가 업데이트됩니다를 사용하여 유사한 수정 프로그램을 사용하면 이 문제를 해결할 수있는 권한이 있습니다. –