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?


Try using System.Dynamic.DynamicObject as a simple starting point and base class. You can find an example at

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