Converting double array to IComparable array?

Although double can be cast to IComparable it doesn't mean that double can be cast to IComparable A simple option would be to create a new IComparable array and copy the data over - or in your case, simply start the original array as IComparable Actually, I'd be tempted to use the generic IComparable. Default and non-default comparers.

Although double can be cast to IComparable, it doesn't mean that double can be cast to IComparable. A simple option would be to create a new IComparable array and copy the data over - or in your case, simply start the original array as IComparable. Actually, I'd be tempted to use the generic IComparable or IComparer interfaces, or the Comparison delegate - all using generics - this also allows use of Comparer.

Default and non-default comparers.

Oh, right. I should actually USE those new language features. – David Sokol Oct 15 '08 at 20:48.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions