From 0eaf5cecce8bdca51fa113bae4560a8e32975028 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:58:45 +0000 Subject: Utilisateur : Fcolin Date : 10/04/06 Heure : 18:45 Archivé dans $/CSharp/Ivy/Ivy Commentaire: optimisation diverse suite a passage de Code Analysis (vss 42) --- CSharp/Ivy/IvyPPC/IvyClient.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs') diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index 649ea80..1a5a350 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -41,14 +41,13 @@ namespace IvyBus } - public string[] Regexps + public StringCollection Regexps { get { - int i = 0; - String[] tab = new String[bindings.Count]; + StringCollection tab = new StringCollection(); foreach( IvyBindingBase bind in bindings.Values ) - tab[i++] = bind.expression; + tab.Add(bind.expression); return tab; } @@ -483,7 +482,7 @@ namespace IvyBus [Conditional("DEBUG")] private void traceDebug(String s) { - Trace.Assert(!Ivy.VerboseDebug, "-->IvyClient " + bus.appName + ":" + appName + "<-- " + s); + Trace.Assert(!Ivy.VerboseDebug, "-->IvyClient " + this.bus.appName + ":" + appName + "<-- " + s); } internal bool isPinging = false; -- cgit v1.1