I have a List of Activity. In the Activity class is an ID property (a Guid for arguments sake). I want to check if this list has an Activity in it with a Guid I have. Rather
I Havent tested it but im fairly sure this should work:
if ( ActivityList.Any ( a => a.Id == GuidToCompare ) ) { // TODO - Exists. }
MSDN Any : http://msdn.microsoft.com/en-us/library/bb534972.aspx