LINQ - How to change value in select or foreach loop ?

Posted by Eugene on Stack Overflow See other posts from Stack Overflow or by Eugene
Published on 2010-04-04T17:42:34Z Indexed on 2010/04/04 18:13 UTC
Read the original article Hit count: 268

Filed under:
IQueryable items = from rr in _dt.AllItems
                   where rr.ID == ItemID
                   select new{rr.Item, rr.SecondItem};

SecondItem is returning false or true. Is it possible to replace with different string values (for example with On and Off) and add to the items (IQueryable)?

© Stack Overflow or respective owner

Related posts about LINQ