String.IsNullOrEmpty()

time to read 1 min | 63 words

Can somebody explains to me why this is happening? I looked at the generated IL, and it looks fine, but it consistently generate a Null Reference exception if I compile it with:

csc /debug+ /optimize+ test.cs

The stack trace points to for loop line, but I have no idea what is happening there.