title: C#: Put member variables into a list
body: <p>Assuming I have a method which accepts an IList or similar thing as a parameter:</p>
  
  <pre><code>public void JiggleMyList(IList&lt;string&gt; list)...
  </code></pre>
  
  <p>Is there an easy way that I can pass in string members of a list of objects?</p>
  
  <p>I mean, if for example, I have a list of Person objects which expose a string property called FullName, is there a quick way to stuff the FullNames of all the Person objects into the method parameter, or do I have to create a new List and iterate through the Person objects:</p>
  
  <pre><code>List&lt;string&gt; fullNames = new List&lt;string&gt;;
  foreach (Person person in people)
  {
    fullNames.Add(person.FullName);
  }
  JiggleMyList(fullNames);
  </code></pre>
  
  <p>I come across this all the time, and it would be nice if there was a shortcut.</p>
  
  <p>Many thanks</p>
  
  <p>David</p>