Beispiel #1
0
 public MemberBindExpression(ExpNode sourceProperty, TypedMemberExpression targetProperty)
     : base("MemberBindExpression")
 {
     SourceProperty = sourceProperty;
     TargetProperty = targetProperty;
     //SourceProperty = new PropertyExpression(
 }
Beispiel #2
0
        private static MemberBindExpression BindProperty(ResourceType resourceType, string LeftHandSide, string RightHandSide)
        {
            PropertyExpression    sourceProperty = new PropertyExpression(resourceType.Properties[RightHandSide] as ResourceProperty);
            TypedMemberExpression targetProperty = new TypedMemberExpression(resourceType.ClientClrType, resourceType.Properties[LeftHandSide].Name);

            return(new MemberBindExpression(sourceProperty, targetProperty));
        }
Beispiel #3
0
 public MemberBindExpression(TypedMemberExpression targetProperty)
     : base("MemberBindExpression")
 {
     TargetProperty = targetProperty;
     //SourceProperty = new PropertyExpression(
 }
Beispiel #4
0
        public static MemberBindExpression Bind(this ResourceType resourceType, string LeftHandSide, ExpNode RightHandSide)
        {
            TypedMemberExpression targetProperty = new TypedMemberExpression(resourceType.ClientClrType, resourceType.Properties[LeftHandSide].Name);

            return(new MemberBindExpression(RightHandSide, targetProperty));
        }