diff options
author | fcolin | 2007-02-01 09:47:19 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:47:19 +0000 |
commit | 8eaf8d17e4ce101fbee7c1346d5c0a17245ec30f (patch) | |
tree | c5e2987cc159fe4cd0d0fdf8451fce9e1b8538dd | |
parent | 8d1377de6625cf537f935cbf0ff8917014a8a1ed (diff) | |
download | ivy-csharp-8eaf8d17e4ce101fbee7c1346d5c0a17245ec30f.zip ivy-csharp-8eaf8d17e4ce101fbee7c1346d5c0a17245ec30f.tar.gz ivy-csharp-8eaf8d17e4ce101fbee7c1346d5c0a17245ec30f.tar.bz2 ivy-csharp-8eaf8d17e4ce101fbee7c1346d5c0a17245ec30f.tar.xz |
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)
-rw-r--r-- | CSharp/Ivy/Ivy/IvyClient.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/CSharp/Ivy/Ivy/IvyClient.cs b/CSharp/Ivy/Ivy/IvyClient.cs index 649ea80..1a5a350 100644 --- a/CSharp/Ivy/Ivy/IvyClient.cs +++ b/CSharp/Ivy/Ivy/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;
|