I'm very confused here. Suppose I have two programs in Visual Studios - I'm using C# WPF. Suppose I have two programs where Program 1 has Program 2 as a reference - and similarly Program 2 has Program 1 as a reference.
Program1.sol
p1.xaml.cs contents:
public void checkStuff(myThing x)
{
// Do stuff (irrelevant)
}
public enum myThing
{
stuff,
stuff2,
stuff3,
stuff4
}
Program2.sol
p2.xaml.cs contents:
// Let's say I call that function
p1 p1content = new p1();
p1content.checkStuff(0); // <-- Why does this work??
My question is, why does the number 0 work as a parameter? This may be trivial but what exactly does the program think I am passing in that function when I pass in 0? At first I thought it was the index of the variables located in my enum class, but it can't be because I can't pass in 1,2, or 3, etc..