What is the way for direct assignment?
<p>What is the way to add items to list when i have class setup </p>

<pre><code>class person
    {
        string name;
        List&lt;RecipeList&gt; rcp = new List&lt;RecipeList&gt;();
        public List&lt;RecipeList&gt; RList
        {
            get { return rcp; }
            set { rcp = value; }
        }
        public string Name
        {
            get{return name;}
            set {name=value;}
        }
    }



   class RecipeList
    {
        string nameofrec;
        public string NameofRecipe
        {
            get { return nameofrec; }
            set { nameofrec = value; }
        }
    }
</code></pre>

<p><strong>following declaration not working</strong> </p>

<pre><code>person[] prn = new person[]

 { new person { Name = "Robert",
    RList=new List&lt;RecipeList&gt;().AddRange("Coak","Pizza")},

 new person { Name = "Rahim",
              RList =new List&lt;RecipeList&gt;().AddRange("Coak","OnionBread")}
 };
</code></pre>
