summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
authorfcolin2009-10-15 11:26:09 +0000
committerfcolin2009-10-15 11:26:09 +0000
commit65833daed5092df0125fb3f50321835bc276fb04 (patch)
tree446a8d9d79aa156189174530690189973a6d6e49 /Ivy
parent4ae9a015e0c6f38bb3230bb829c0fd34ff8c8ec7 (diff)
downloadivy-csharp-65833daed5092df0125fb3f50321835bc276fb04.zip
ivy-csharp-65833daed5092df0125fb3f50321835bc276fb04.tar.gz
ivy-csharp-65833daed5092df0125fb3f50321835bc276fb04.tar.bz2
ivy-csharp-65833daed5092df0125fb3f50321835bc276fb04.tar.xz
ajout constructeur par default CLS compliant
Diffstat (limited to 'Ivy')
-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);
}