My brain's gone finishing this morning, so I need a bit of help. Let's say I have a class that looks like this:
Class Foo { int bar; int mooose; void Foo(int bar, int moose) { this.bar = bar; this.moose = moose; } }
And then somewhere I create an array of objects, fooObj, of the type Foo and populate the variables of all objects in the array. How would I find which object has moose=42?