]> O.S.I.I.S - jp/crow.git/commitdiff
allow binding of XmlIgnored props
authorjpbruyere <jp.bruyere@hotmail.com>
Tue, 9 Feb 2016 11:29:50 +0000 (12:29 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Tue, 9 Feb 2016 11:37:03 +0000 (12:37 +0100)
src/GraphicObjects/GraphicObject.cs
src/GraphicObjects/Trend.cs [new file with mode: 0644]

index 27f1fe5dd3f28bdfe46b548a5753f6787ac01864..09b1776d6bfa7cba42b67c0dd984b82f3f065f22 100644 (file)
@@ -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 (file)
index 0000000..ffc25c3
--- /dev/null
@@ -0,0 +1,31 @@
+//
+//  Trend.cs
+//
+//  Author:
+//       Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
+//
+//  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 <http://www.gnu.org/licenses/>.
+using System;
+
+namespace Crow
+{
+       public class Trend
+       {
+               public Trend ()
+               {
+               }
+       }
+}