Assign the value of an object in another object
<p>I have two classes class A and class B and a static list as show below</p>

<pre><code>class A
{
   int Id;
   string firstName;
   string lastName;
}

class B
{
   int Id;
   A a;
   string value;
}

class c
{
    public static List&lt;A&gt; obj=new List&lt;A&gt;();
}
</code></pre>

<p>I need to assign the value of an item from the list 'obj' to the property a in an object of class B and not the reference of the item in the list.</p>
