ArrayList val = new ArrayList();
IComparable val1 = val as IComparable;
if (val1 == null)
{
Console.WriteLine("val doesnt support IComparable");
}
Am i correct in assuming that "val1" would have to be declared above as a type that supports the IComparable interface already??
Thanks for your time
This post has been edited by scolty: 15 May 2011 - 09:08 AM

New Topic/Question
Reply



MultiQuote





|