Originally Posted by DecenyDefied
I just need to know what I am doing wrong.
The error I get says "error CS0117; 'System.Array' does not contain a definition for 'sort'
I think I might have a good idea going but I probably have errors in it so it wont sort properly. I just want to be able to inpu 10 random numbers, and get them back sorted from smallest to largest.
Well, there's a lot wrong, really.
You're calling the method totally wrong.
static void Main()
That makes no sense, and I'm surprised it even compiles, if it does.
Your method name is selectionSort. You need to call Program.selectionSort() (you declared it static), but it appears to take arguments, so you'd need to pass those as well.
I'm not totally sure what the arguments are FOR, though. If you pass something called size, I'd imagine you meant to set an array size dynamically and use it in that loop like you do. But you hard-coded it to 10 and at the moment size is undefined because you aren't passing the value.
There's more wrong here than right, honestly. You may want to re-read your class material and ask for help from your instructor.