summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ivy/IvyBindingAttribute.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Ivy/IvyBindingAttribute.cs b/Ivy/IvyBindingAttribute.cs
index 1380f0f..f431275 100644
--- a/Ivy/IvyBindingAttribute.cs
+++ b/Ivy/IvyBindingAttribute.cs
@@ -17,6 +17,7 @@ namespace IvyBus
public string Expression
{
get { return this.expression; }
+ set { this.expression = value; }
}
public ReadOnlyCollection<string> Args
@@ -29,11 +30,16 @@ namespace IvyBus
this.expression = expression;
this.args = args;
}
+ public IvyBindingAttribute()
+ {
+ this.expression = "";
+ this.args = null;
+ }
// translate part of expression to object property
public string GetFormattedExpression(object target)
{
- if (target == null)
+ if (target == null || args == null )
{
return string.Format(this.expression);
}