title: How to create ArrayList of User Defined Class
body: <p>I m having a Class suppose Function</p>
  
  <p>I m writing such code </p>
  
  <pre><code>class FunctionsList
  {
  
    public ArrayList&lt;Function&gt; functionList // this resuls in error while in Java i have done same
    { 
       get;
       set;
    }
  }
  
  while Function class is defined below
  
  public class Function 
  {
     public String Name
     {
           get; set;
     }
  
     public String Signature
     {
           get; set;
     }
  }
  </code></pre>
  
  <p>where i m doing wrong in C# pls tell</p>