From 65833daed5092df0125fb3f50321835bc276fb04 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 15 Oct 2009 11:26:09 +0000 Subject: ajout constructeur par default CLS compliant --- Ivy/IvyBindingAttribute.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Ivy') 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 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); } -- cgit v1.1