How to Select two values from one value

Posted by Jacob Seleznev on Stack Overflow See other posts from Stack Overflow or by Jacob Seleznev
Published on 2010-04-28T03:49:52Z Indexed on 2010/04/28 3:53 UTC
Read the original article Hit count: 174

Filed under:
|

I want to do something like this:

        foreach (Customer c in customers)
        {
            yield return c.Name;
            yield return "0";
        }

I started:

customers.Select(c => new
                                      {
                                          c.Name,
                                          Second = "0"
                                      }).???

But then what?

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about c#