c# - Select items from List A where the property is not in List B -


i have list<broadcast> , broadcast object has property called guid. need find broadcast objects in list guid property not item in list<guid>. i've found solution except(); it's not working me.

broadcasts.where(x => x.guid).except(readbroadcasts); 

what doing wrong?

here way can :

list<guid> excludeguid = ..... // init guids want exclude list<broadcast> result = broadcasts.where(x => !excludeguid.contains(x.guid)).tolist() ;  

Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -