Linq ForEach with AddRange and Contains And Select?

Try this: var ListID = SubDetails . Where(info => typeList. Any(type => type == info.

TypeID) . Select(info => info. OrderID).

Try this. Var ListID = typelist. Join(SubDetails,tl=>tl,sd=>sd.

TypeID,(tl,sd)=>sd. OrderID).ToArray().

You can fill up ListID as SubDetails. Where(t => typeList. Exists(lst => lst.XXX == t.

TypeID)). Select(id => id. OrderID).

Thanks for the reply, but I am getting the error from typeList. Contains(t. TypeID)) as typeList.

Contains expect something of Custom type in it, I could make it work my merging with answer of Ed, typeList. Any(u=>u. TypeID==t.

TypeID), kindly enlighten your approach – Manvinder yesterday Oops I missed the customtype part – V4Vendetta yesterday One upvote for you – Manvinder yesterday.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions