aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GraphicObject.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-09 12:29:50 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-09 12:37:03 +0100
commitcf0052b809ed26de154628e637f60acc7c47d5b0 (patch)
tree410b3466564f79c40aab8af42a5ed481aecf746e /src/GraphicObjects/GraphicObject.cs
parent53928ccbdda3ff284432aa668b81f4f733384b0c (diff)
allow binding of XmlIgnored props
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
-rw-r--r--src/GraphicObjects/GraphicObject.cs6
1 files changed, 4 insertions, 2 deletions
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;