Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
cannot implicitly convert type "system.collection.generic.ilist<bo.slabconsumptiondetails> to system.collections.generic.ilist<object> an explicity conversion exists(are you missing a cast)
Posted
Comments
Vani Kulkarni 25-Jun-12 0:11am    
This question does not help. There might be many reasons for this error. Please post your code where you are facing this issue.

1 solution

The error message is fairly clear, and does include instructions on what to do.

You are trying to assign a generic collection to a explicitly defined collection and the compiler wants to be sure you know what you are doing. Either cast the collection (it says a conversion exists), or change the definition of the variable you are assigning into to match the type being assigned.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900