static void Main2(string[] args)
        {
            dynamic d = new MyDynamicObject();

            Console.WriteLine(d == null);
            var sequence = (IEnumerable)d;

            //IEnumerable sequence = d;

            Console.WriteLine(sequence == null);
            foreach (var item in sequence)
            {
                Console.WriteLine(item);
            }

            foreach (var item in d)
            {
                Console.WriteLine(item);
            }
        }
 public DynamicProvider(MyDynamicObject myDynamicObjectMeta, Expression parameter)
     : base(parameter, BindingRestrictions.Empty, myDynamicObjectMeta)
 {
     this.myDynamicObjectMeta = myDynamicObjectMeta;
 }