Пример #1
0
 public PropertySet(PropertyAccess property, Element value, bool isMaybe, TextRange range)
     : base(isMaybe, range)
 {
     Contract.Requires <ArgumentNullException>(property != null);
     this.Property = property;
     this.Value    = value;
 }
Пример #2
0
            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));
            }
Пример #3
0
 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);
 }
Пример #4
0
 public PropertySet(PropertyAccess property, Element value, bool isMaybe, TextRange range)
     : base(isMaybe, range)
 {
     Contract.Requires<ArgumentNullException>(property != null);
     this.Property = property;
     this.Value = value;
 }