You need to sign in to do that
Don't have an account?
code developer
How to cast aList<Object>?
Hi
I have a List<Object>. I need to cast this to List<A> say :
(List<A>) List<Object>.
but I am getting System.TypeException: Invalid conversion from runtime type LIST<ANY> to LIST<A>.
pls help me out
How about this:
List<Object> lo = new List<Object>();
List<Contact> lc = (List<Contact>)lo;
It is not working.Any other suggestions please?