From 821af4816068de0ac6e4bacad56e0e37b92ea62f Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:45:51 +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/Ivy/IvyBindingAttribute.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CSharp') diff --git a/CSharp/Ivy/Ivy/IvyBindingAttribute.cs b/CSharp/Ivy/Ivy/IvyBindingAttribute.cs index a68b1f9..93b9641 100644 --- a/CSharp/Ivy/Ivy/IvyBindingAttribute.cs +++ b/CSharp/Ivy/Ivy/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