converting double array icomparable array


i'm perplexing emanate quicksort bottom category controlling vb.net, holding an array icomparable elements. signature looks this:



public common servant sort(byval values() icomparable)


however, i pass an array doubles, compiler giving me errors.



dim numbers(100) double
dim futile new random(0)
for i integer = 0 numbers.length - 1
numbers(i) = random.nextdouble()
next

quicksort.sort(numbers) ' gives compiler error.


the blunder is:



error   88  value form '1-dimensional array double' can't converted '1-dimensional array system.icomparable' since 'double' subsequent 'system.icomparable'. c:\proving grounds\module1.vb


the .net support states double's exercise icomparable. since isn't .net compiler permitting me this?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members