4

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

2
  • @TStamper nothing has to be a wiki, it's up to the person whether they want reputation or share ownership of the question. Commented May 21, 2009 at 15:12
  • @Rex M- True..it was just to inform the person since they seem to not be an active person on SO Commented May 21, 2009 at 15:33

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.