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 TrivediPosted Oct 24, 2016, 8:19 AM
Darshan KshirasagarPosted Oct 24, 2016, 8:18 AM
Darshan KshirasagarPosted Oct 24, 2016, 7:57 AM
Amit GuptaPosted Oct 24, 2016, 7:48 AM
{
DD = new E1[5];
}
Tejas TrivediPosted Oct 24, 2016, 7:41 AM