System.Dynamic.DynamicMetaObject.DynamicMetaObject C# (CSharp) Method

DynamicMetaObject() public method

Initializes a new instance of the DynamicMetaObject class.
public DynamicMetaObject ( Expression expression, BindingRestrictions restrictions ) : System.Collections.Generic
expression System.Linq.Expressions.Expression The expression representing this during the dynamic binding process.
restrictions BindingRestrictions The set of binding restrictions under which the binding is valid.
return System.Collections.Generic
        public DynamicMetaObject(Expression expression, BindingRestrictions restrictions)
        {
            ContractUtils.RequiresNotNull(expression, nameof(expression));
            ContractUtils.RequiresNotNull(restrictions, nameof(restrictions));

            Expression = expression;
            Restrictions = restrictions;
        }

Same methods

DynamicMetaObject::DynamicMetaObject ( Expression expression, BindingRestrictions restrictions, object value ) : System.Collections.Generic