Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
6
Answers
How to add Item to a list in c#?
Dinesh Santhalingam
7y
402
1
Reply
I have some Values. I want to add it to the list.
Ex:
List
<
string
>
mylist1
=
new
List
<
string
>
() ;
string
name
=
"dinesh"
;
Int
age
=
16
;
string bike="Hero"
mylist1.Add(Name,Age,bike);//can't able to add
How to rectify this error?
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
How to insert the data to sql table?
How to create Excel file 31055.xlsx in application path