Below Code
public partial class A1
{
public A1()
{
AA = new B1();
}
private B1 objB1;
public B1 AA
{
get
{
return this.objB1;
}
set
{
this.objB1 = value;
}
}
}
public partial class B1
{
public B1()
{
BB = new C1 { };
}
private C1 objC1;
public C1 BB
{
get
{
return this.objC1;
}
set
{
this.objC1 = value;
}
}
}
public partial class C1
{
public C1()
{
CC = new D1();
}
private D1 objD1;
public D1 CC
{
get
{
return this.objD1;
}
set
{
this.objD1 = value;
}
}
}
public partial class D1
{
public D1()
{
//DD = new E1();
}
private E1[] objE1;
public E1[] DD
{
get
{
return this.objE1;
}
set
{
this.objE1 = value;
}
}
}
public partial class E1
{
private string ValE1;
public string EE
{
get
{
return this.ValE1;
}
set
{
this.ValE1 = value;
}
}
}
but problem is in Class D1 constructor i want to create object of E1 which is array type how can i create object ...?
Loading

Tejas TrivediRank #1,247 · 1.4K reputationPosted Oct 24, 2016, 3:41 AM EDT
Darshan Kshirasagar17 reputationPosted Oct 24, 2016, 3:57 AM EDT
Darshan Kshirasagar17 reputationPosted Oct 24, 2016, 4:18 AM EDT
Tejas TrivediRank #1,247 · 1.4K reputationPosted Oct 24, 2016, 4:19 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 24, 2016, 3:48 AM EDT
{
DD = new E1[5];
}