What is the explanation for the result from the following operation?I was trying to understand the output result from the following code:
Can anyone explain the result from this operation:I was trying to understand the output result from the following code:
I have this code that emits some IL instructions that calls string.IndexOf on a null object:This is the generated IL code:
I have a Main method like this:Since I am accessing a local variable b here the compiler creates a class to capture that variable and b becomes the field of that class. Then the b lives as long as the life time of the compiler generated class and it causes...