Camillia
asked on
Why this line of code is not correct? difference between them?
I'm reviewing some interview questions. Why is the first one wrong and the second one correct?
IEnumerable<string> objects1 = new List<object>(); //*** not correct
IEnumerable<object> objects = new List<string>(); //correct
IEnumerable<string> objects1 = new List<object>(); //*** not correct
IEnumerable<object> objects = new List<string>(); //correct
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.