3
Reply

Compile type error coming in List.

Mayank

Mayank

Jul 11 2017 7:28 AM
242
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. 

Upload Source Code  Select only zip and rar file.
Answers (3)