How to manipulate with Array Variables? Array functions aren't working? WHY?

Hello

if I have arrayed variable like this one:

int[] SInt0 = new int[10];

And I want to sort arrays I should use Array.Sort();
so I tried this:

Array.Sort(SInt0);

I have seen this at:

I also tried this:

SInt0.Sort();

That kind of writing is shown at Unity’s help file

but both of them are not working, I have tried other functions like Push, Add
they also aren’t working so I don’t get it how to manipulate with Arrayed variables

this is from the Unity’s help file when you search for “Array” I don’t know how to use that functions and I need them :confused: plz help

Can you show some sample input data, the data that is returned when you run sort, and the result you are expecting?

No, your variable is a built-in array, not an Array, which is only available in Unityscript anyway, not C#. (But even in Unityscript, you should never use the Array class, since there are better alternatives.) Look up System.Array on MSDN.

–Eric