I'm trying to understand the inner workings of C# and CIL. I'm trying to find a way to swap a generic method in a generic class at runtime with a non generic method.
The problem is outlined in detail in this StackOverflow Question:
[login to view URL]
The proposed solution will
1. Not use any external frameworks other than whats provided by .Net or default microsoft packages
2. The develop should have a detailed explanation of whats happening at each line e.g
This line should have an explation of whats occuring: (var index = (int)(((*(long*)tar) >> 32) & 0xFF);
3. The solution will provide a simple test proving that the generic method are being swapped at runtime