public PropertySet(PropertyAccess property, Element value, bool isMaybe, TextRange range) : base(isMaybe, range) { Contract.Requires <ArgumentNullException>(property != null); this.Property = property; this.Value = value; }
private Expression GenProp(PropertyAccess elem) { Contract.Requires <ArgumentNullException>(elem != null); Contract.Ensures(Contract.Result <Expression>() != null); var target = GenElem(elem.Value); return(Expression.Dynamic(StmtGen.Factory.GetMemberBinder(elem.Name), typeof(object), target)); }
private Expression GenProp(PropertyAccess elem) { Contract.Requires<ArgumentNullException>(elem != null); Contract.Ensures(Contract.Result<Expression>() != null); var target = GenElem(elem.Value); return Expression.Dynamic(StmtGen.Factory.GetMemberBinder(elem.Name), typeof(object), target); }
public PropertySet(PropertyAccess property, Element value, bool isMaybe, TextRange range) : base(isMaybe, range) { Contract.Requires<ArgumentNullException>(property != null); this.Property = property; this.Value = value; }