Simple linq question: using linq to get an array of properties

Posted by Joel Barsotti on Stack Overflow See other posts from Stack Overflow or by Joel Barsotti
Published on 2010-05-17T07:29:56Z Indexed on 2010/05/17 7:30 UTC
Read the original article Hit count: 233

Filed under:
|

Lets say we have a simple class

public class Foo
{
    public string FooName;
}

Now we want to do some simple work on it.

public void SomeCallerMethod(List<Foo> listOfFoos)
{
    string[] fooNames = listOfFoo. // What to do here?
}

If I even knew what method to call, I could probably find the rest of the peices.

© Stack Overflow or respective owner

Related posts about c#

Related posts about linq-to-objects