Given the below code, will the method parameter y in Bar(int y) be assigned the value from x or 1? I realize they are logically equivalent, but I want to understand the assignment operation.
class Program
{
static void Main(string[] args)
{
var foo = new Foo();
var x = 0;
foo.Bar(x = 1);
}
}
public class Foo
{
public void Bar(int y)
{
}
}