Returning only a few properties of an object
<p>If I've got a list of objects with, let's say, 10 properties, and I want to return a list of these objects but with only 3 properties of the 10 available, how would I do that?</p>

<pre><code>public class Example
{
    public int attr1 {get;set;}
    public int attr2 {get;set;}
    public int attr3 {get;set;}
    public int attr4 {get;set;}
    public int attr5 {get;set;}
}

return ExampleList; //have the return value be a list with only attr1, 2, and 3 visible.
</code></pre>
