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
3
Answers
Compile type error coming in List.
Mayank
7y
280
1
Reply
1.
string str="data";
object h2=str;
2.
List<object> h1 = new List<string>();
3.
IEnumerable<object> h3 = new List<string>();
First and third code working fine.
But second code is blowing error.
Please expain me.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Hackerrank Test code doesnt compile
Looping through an array