dynamic and indexer
Remember one year ago, I wrote a post on how to use reflection with dynamic keyword. At this moment, I sent an email to MS to add an indexer in dynamic. I don’t know if my email changed any thing but I am very happy to see that from .NET 4.0 Beta 2, we are now able to use it.
So in my sample, instead of
result = dynamicSpBase.get_Item(name);
I can now directly write this:
result = dynamicSpBase[name];
Great! 