I want to do something like this:
Dim selectedCourses As List(Of Guid) = From item In chkListCourses.Items Where item.Selected = True Select item.Value
but I get the error:
Unable to cast object of type 'WhereSelectEnumerableIterator
2[System.Object,System.Object]' to type 'System.Collections.Generic.List
1[System.Guid]'.
The value of item is a string representation of a Guid.
I'd also like the syntax for a Lambda expression.