Index Of GameObject in Builtin Array.

I have looked at the .NET documentation but keep getting errors.

So a concrete example would be nice.

I am looking for the correct version of IndexOf, getPos, FindIndex Array.Find etc.

var Position = blah(DwarfArray, Grumpy)

what is blah?

I believe you want

var position = System.Array.LastIndexOf(dwarfArray, grumpy);

Posting what you’ve already tried, and the exact text of the errors it results in is a good idea, too.

Thanks for the swift reply.
I was not using system, trying to move over to builtin arrays.

System.Array is the base class for builtin .NET arrays. Any classes in the System namespace are from .Net.