From 4c83f7e09c4e2b5b4da81a47bf29d1f67e3f2f89 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:57:17 +0000 Subject: Utilisateur : Fcolin Date : 2/06/06 Heure : 16:47 Archivé dans $/CSharp/Ivy/Ivy Commentaire: Mise en conformite du code avec les guidelines , et changement prototype evenements (vss 6) --- CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs') diff --git a/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs b/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs index a68b1f9..93b9641 100644 --- a/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs +++ b/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs @@ -7,12 +7,13 @@ namespace IvyBus [AttributeUsage(AttributeTargets.Method,AllowMultiple = true)] public sealed class IvyBindingAttribute : Attribute { - string expression; - string[] args; + private string expression; + private string[] args; // translate part of expression to object property public string GetExpression(object obj) { + if (obj == null) return ""; string[] values = new string[args.Length]; for (int i = 0; i < args.Length; i++) { -- cgit v1.1