public Result.IfSuccess <BindingSource> VisitPropertyPart(PropertyPart propertyPart, Parameters parameters, Context context)
        {
            var codeGenerator = new PropertyAccessorCodeGenerator(context, this.typeResolver, propertyPart.Name, false);

            return(this.targetBindingPartCodeGenerator.GeneratePartBinding(parameters.Binding.BindingAssignment.Mode, this.targetValue, context, codeGenerator));
        }
        public Result.IfSuccess <BindingSource> VisitAttachedDependencyProperty(AttachedDependencyProperty attachedDependencyProperty, Parameters parameters, Context context)
        {
            var codeGenerator = new PropertyAccessorCodeGenerator(context, this.typeResolver, attachedDependencyProperty.Name, true);

            return(this.targetBindingCodeGenerator.GenerateBinding(parameters.Binding, this.targetValue, this.elementType, context, parameters.HasCodeBehind, codeGenerator));
        }