From: jpbruyere Date: Tue, 9 Feb 2016 11:29:50 +0000 (+0100) Subject: allow binding of XmlIgnored props X-Git-Tag: 0.3~25 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=cf0052b809ed26de154628e637f60acc7c47d5b0;p=jp%2Fcrow.git allow binding of XmlIgnored props --- 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 () + { + } + } +}