Access my class returned list collection in code behind <p>I have a list collection in my class library that uses a sql datareader to returns a list of family details</p> <pre><code>public class Dataops { public List&lt;Details&gt; getFamilyMembers(int id) { some of the database code.. List&lt;Details&gt; fammemdetails = new List&lt;Details&gt;(); Details fammember; while (reader.Read()) { fammemdetails = new Details(( reader.GetString(reader.GetOrdinal("PHOTO"))); fammemdetails.add(fammember); } return fammemdetails; } } </code></pre> <p>So i reference the dll to my project and would like to bind an image to one of my datareader values.</p> <p>MyProject</p> <pre><code>DataOps ops = new DataOps(); myimage.ImageUrl = ??? (how do i access the list collections return image value here? </code></pre> <p>I am able to bind a datasource to the entire method like so</p> <pre><code>dropdownlistFamily.DataSource = mdb.GetFamilyMembers(id); </code></pre> <p>But cant figure out how to just grab a single value from there</p>