By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,558 Members | 1,673 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,558 IT Pros & Developers. It's quick & easy.

NETCF - Array.Sort Method (Array, IComparer) - error

P: n/a
Hi
I tried all the examples in the visual studio IDE but
the array.sort (array,icomparer) examples fails to
work in VB.NET for Smart Devices..

its get an error before it is compiled...

Is there a workaround?

Allan
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

aprivate wrote:
Hi
I tried all the examples in the visual studio IDE but
the array.sort (array,icomparer) examples fails to
work in VB.NET for Smart Devices..

its get an error before it is compiled...

Is there a workaround?


In the documentation for Array.Sort, only the following overloads are
listed as being supported by the .NET Compact Framework:

Overloads Public Shared Sub Sort(Array)
Overloads Public Shared Sub Sort(Array, Integer, Integer, IComparer)
Overloads Public Shared Sub Sort(Array, Array, Integer, Integer,
IComparer)

so to get your desired result you need to use the second of these and
explicitly supply the range to sort as being the entire array.

--
Larry Lard
Replies to group please

Nov 21 '05 #2

P: n/a
Do you think we all have ESP? What error do you get?

Nov 21 '05 #3

P: n/a
Hi
Ok - sorry - this is a better description

1) I just found a new example from the web

http://www.codepedia.com/1/VBNET_ArraySort

2) When I enabled this in the VB Smart Application program
it complains with the following message

"overload resolution failed because no accessible 'sort' accepts this
number of arguments'

All the declarations had no error.

3) When I pasted the same code into Vb.net for win32 project , it works.

Regds
Allan


"Chris Dunaway" <du******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Do you think we all have ESP? What error do you get?

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.