Skip to content
Advertisement

Mono and Array.Sort

How can I use Array.Sort(someArray) in Mono with the Monodevelop !? I’m using Mono 4.2.2 and Monodevelop 5.10.

Did I has to import some namespace? Which one?

Is there another method to use?

I’ve been trying that and don’t works:

JavaScript

Advertisement

Answer

Array is in the System namespace and is included within mscorlib (Mono/.Net 2/4/4.5+).

Using:

JavaScript

Cut/Paste example:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement