Given the below console program:
class Program
{
private static string _value;
static void Main(string[] args)
{
var t = new Action(() => _value = "foo");
Console.Out.WriteLine("t.Method.IsStatic: {0}", t.Method.IsStatic);
}
}
When compiled against .Net 4.5.2 using VS 2013, it will print
t.Method.IsStatic: true
When compiled against .Net 4.5.2 using VS 2015, it will print
t.Method.IsStatic: false
From this question, I kind of understand what is happening, but I'm confused why there is a change in behavior between versions of VS. From my understanding, the 2013 output is correct.