ITSWITCH #1: Answer
Last post I detailed some code that may or may not have something wrong in it. If you thought InitializeOne and IntializeTwo are semantically identical (e.g. they differ only by performance), you’d be wrong. If you simply ran the code, you’d be able to guess where the problem is. To understand what’s causing the problem. Let’s look at how C# effectively implements the two loops. InitializeOne is essentially equivalent to private class PrivateDelegateHelper { public String Value { get; set; } public void Method() { TestClass.ProcessText(Value); } } public void … Continue reading ITSWITCH #1: Answer