コード例 #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
ファイル: Ast.cs プロジェクト: irxground/kurogane
 public PropertySet(PropertyAccess property, Element value, bool isMaybe, TextRange range)
     : base(isMaybe, range)
 {
     Contract.Requires<ArgumentNullException>(property != null);
     this.Property = property;
     this.Value = value;
 }