Question

I want to create an object in C# and have it do interesting things based on the name of the non-existent method that gets.

In ruby, this is method_missing. In Perl, this is AUTOLOAD.

I can't seem to find the way into System.Dynamic in C#.

Was it helpful?

Solution

Try using System.Dynamic.DynamicObject as a simple starting point and base class. You can find an example at http://winterdom.com/2009/05/dynamicobject-in-c-40.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow