How do you implement C#4's IDynamicObject interface?

后端 未结 5 1033
忘掉有多难
忘掉有多难 2021-01-01 00:03

To implement \"method-missing\"-semantics and such in C# 4.0, you have to implement IDynamicObject:

public interface IDynamicObject
{
  MetaObject GetMetaObj         


        
5条回答
  •  臣服心动
    2021-01-01 00:53

    This presentation also provides a lot of information about the DLR:

    • Deep Dive: Dynamic Languages in Microsoft .NET by Jim Hugunin.

提交回复
热议问题