المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : a problem about "bool Exists(Predicate match);"



C# Programming
02-22-2010, 07:52 PM
I am trying to convert some code to .net framework 2.0 from .net framework 3.0.

the code of .net framework 3.5 is:

if (mItems.Exists(b => string.Compare(b.FileName, item.FileName, StringComparison.OrdinalIgnoreCase) == 0))
return;
It can run in .net framework 3.5 and can not run in .net framework 2.0.

Could someone tell me where the defferent things between 3.5 from 2.0 in the code are.