I want to do this
return array.Any(IsOdd);
but instead of an array i have a list of objects where IsOdd takes in the object.Number property as its argument.
I tried this
return objectList.Select(x => x.Number).Any(IsOdd);
but got this error "'Select' is not a member of 'System.Collections.Generic.List(Of myObject)'."
Also my code is actually in VB and I'm using vs 2010 but targeting .net 2.0.