I am working in C# and have come across a statement similar to below:
var dog = anotherDog = someOtherDog;
What exactly is happening here? Is this just assigning the value of one variable to two others?
I am working in C# and have come across a statement similar to below:
var dog = anotherDog = someOtherDog;
What exactly is happening here? Is this just assigning the value of one variable to two others?
Yes.
It is like
anotherDog = someOtherDog;
var dog = anotherDog;
You would have to have both anotherDog and someOtherDog to be declared already.