TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Darshan Kshirasagar
NA
22
3k
Array type how to create object
Oct 24 2016 6:55 AM
Below Code<br /> <br /> public partial class A1<br /> {<br /> public A1()<br /> {<br /> AA = new B1();<br /> }<br /> <br /> private B1 objB1;<br /> public B1 AA<br /> {<br /> get<br /> {<br /> return this.objB1;<br /> }<br /> set<br /> {<br /> this.objB1 = value;<br /> }<br /> }<br /> <br /> }<br /> <br /> public partial class B1<br /> {<br /> public B1()<br /> {<br /> BB = new C1 { };<br /> }<br /> <br /> private C1 objC1;<br /> public C1 BB <br /> {<br /> get<br /> {<br /> return this.objC1;<br /> }<br /> set<br /> {<br /> this.objC1 = value;<br /> }<br /> }<br /> <br /> }<br /> <br /> public partial class C1<br /> {<br /> public C1()<br /> {<br /> CC = new D1();<br /> }<br /> <br /> private D1 objD1;<br /> public D1 CC <br /> {<br /> get<br /> {<br /> return this.objD1;<br /> }<br /> set<br /> {<br /> this.objD1 = value;<br /> }<br /> }<br /> <br /> }<br /> <br /> public partial class D1<br /> {<br /> public D1()<br /> {<br /> //DD = new E1();<br /> }<br /> <br /> private E1[] objE1;<br /> public E1[] DD <br /> {<br /> get<br /> {<br /> return this.objE1;<br /> }<br /> set<br /> {<br /> this.objE1 = value;<br /> }<br /> }<br /> <br /> }<br /> <br /> public partial class E1<br /> {<br /> private string ValE1;<br /> public string EE <br /> {<br /> get<br /> {<br /> return this.ValE1;<br /> }<br /> set<br /> {<br /> this.ValE1 = value;<br /> }<br /> }<br /> }<br /> <br /> <br /> but problem is in Class D1 constructor i want to create object of E1 which is array type how can i create object ...?
Reply
Answers (
5
)
Index was outside the bounds of the array.
Round Of Value of Grand Total Price In Windows Baseppliction