void Test(out SomeDelegate d1, out SomeDelegate d2) { object a = new ObjectGraph(); d1 = delegate { return a; }; object b = new ObjectGraph(); d2 = delegate { return b; }; }
This contrived method is the potential root of some undesired characteristics in a program.
- What is the problem? (hint: ildasm is your friend)
- How can we refactor the method to avoid it?
1 Comments
