From cf0052b809ed26de154628e637f60acc7c47d5b0 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 9 Feb 2016 12:29:50 +0100 Subject: [PATCH] allow binding of XmlIgnored props --- src/GraphicObjects/GraphicObject.cs | 6 ++++-- src/GraphicObjects/Trend.cs | 31 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 src/GraphicObjects/Trend.cs diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 27f1fe5d..09b1776d 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -1295,8 +1295,7 @@ namespace Crow if (dv != null) defaultValue = dv.Value; } - if (!isAttribute) - continue; + if (attValue.StartsWith("{")) { //binding @@ -1307,6 +1306,9 @@ namespace Crow continue; } + if (!isAttribute) + continue; + if (pi.PropertyType == typeof(string)) { pi.SetValue (this, attValue, null); continue; diff --git a/src/GraphicObjects/Trend.cs b/src/GraphicObjects/Trend.cs new file mode 100644 index 00000000..ffc25c39 --- /dev/null +++ b/src/GraphicObjects/Trend.cs @@ -0,0 +1,31 @@ +// +// Trend.cs +// +// Author: +// Jean-Philippe Bruyère +// +// Copyright (c) 2016 jp +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +using System; + +namespace Crow +{ + public class Trend + { + public Trend () + { + } + } +} -- 2.47.3