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
hemalatha cmr
NA
14
0
How do I insert multiple datatype in generic arrraylist
Apr 18 2009 5:22 AM
I am learning generics. I tried to include some elements this way.
List<int> list = new List<int>();
for (int i=0; i<10; i++)
{
list.Add(i);
}
This works.
Now actually i want different types of data to be included
I want to include empno integer,empname string, dateofjoining date, salary double all these in a generic arraylist.
How should I do that, i.e. passing different datatypes in a single generic arraylist.
Kindly help
Reply
Answers (
3
)
close or refresh parent window
how to bind the data grid view in windows application