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#.
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#.
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.