diff options
author | fcolin | 2007-02-01 09:56:51 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:56:51 +0000 |
commit | f7c2f1cd447d7629af0277adcc1539629ee01fa7 (patch) | |
tree | 56aa6c9be550f63fd8e5aa9eba6bd3e3331868e3 /CSharp/Ivy | |
parent | 5e415074ec406ff083e49cc156b38e51f8af4cc0 (diff) | |
download | ivy-csharp-f7c2f1cd447d7629af0277adcc1539629ee01fa7.zip ivy-csharp-f7c2f1cd447d7629af0277adcc1539629ee01fa7.tar.gz ivy-csharp-f7c2f1cd447d7629af0277adcc1539629ee01fa7.tar.bz2 ivy-csharp-f7c2f1cd447d7629af0277adcc1539629ee01fa7.tar.xz |
Utilisateur : Fcolin Date : 22/12/05 Heure : 12:14 Archivé dans $/CSharp/Ivy Commentaire: (vss 4)
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyBinding.cs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyBinding.cs b/CSharp/Ivy/IvyPPC/IvyBinding.cs index 1ff96e5..09e22c9 100644 --- a/CSharp/Ivy/IvyPPC/IvyBinding.cs +++ b/CSharp/Ivy/IvyPPC/IvyBinding.cs @@ -1,6 +1,5 @@ using System;
using System.Collections;
-using System.Collections.Specialized;
using System.Text.RegularExpressions;
namespace IvyBus
@@ -39,13 +38,11 @@ namespace IvyBus if (result.Success)
{
// Start at 1 because group 0 represent entire matching
- StringCollection coll = new StringCollection();
+ args = new string[result.Groups.Count-1];
for (int sub = 1; sub < result.Groups.Count; sub++)
{
- coll.Add(result.Groups[sub].Value);
+ args[sub-1] = result.Groups[sub].Value;
}
- args = new string[coll.Count];
- coll.CopyTo(args, 0);
}
return args;
}
@@ -91,13 +88,11 @@ namespace IvyBus if (msgtag == msgname)
{
- StringCollection coll = new StringCollection();
+ args = new string[msgargs.Length];
for( int sub= 0; sub < msgargs.Length; sub++)
{
- coll.Add((string)args_values[msgargs[sub]]);
+ args[sub] = (string)args_values[msgargs[sub]];
}
- args = new string[coll.Count];
- coll.CopyTo(args, 0);
}
return args;
}
|