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

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -