I have,
public class demo
{
   public custom[] arr {get;set;}  //custom[] custom type of arr
}
public class custom
{
   public string x {get;set;}
   public string y {get;set;} 
}
Now create an object of demo class,
demo obj=new demo();
obj.arr[0].x ="nyks";  // no error at compile time.  run time exception.
obj.arr[0].y="str";
Is it possible to assign value in x,y using an instance of demo? 
If yes, how ?
 
     
    