diff options
author | fcolin | 2007-02-01 09:45:25 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:45:25 +0000 |
commit | 527f387f3ddcff3c3110c60164ccfeb9c3c4e8bb (patch) | |
tree | dce37a0da8f4390d25eb4e107984172f46aef1c0 /CSharp | |
parent | 531d892590f5a4a13754bc4eca917cba5b0e33aa (diff) | |
download | ivy-csharp-527f387f3ddcff3c3110c60164ccfeb9c3c4e8bb.zip ivy-csharp-527f387f3ddcff3c3110c60164ccfeb9c3c4e8bb.tar.gz ivy-csharp-527f387f3ddcff3c3110c60164ccfeb9c3c4e8bb.tar.bz2 ivy-csharp-527f387f3ddcff3c3110c60164ccfeb9c3c4e8bb.tar.xz |
Utilisateur : Fcolin Date : 22/12/05 Heure : 12:14 Archivé dans $/CSharp/Ivy Commentaire: (vss 4)
Diffstat (limited to 'CSharp')
-rw-r--r-- | CSharp/Ivy/Ivy/IvyBinding.cs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/CSharp/Ivy/Ivy/IvyBinding.cs b/CSharp/Ivy/Ivy/IvyBinding.cs index 1ff96e5..09e22c9 100644 --- a/CSharp/Ivy/Ivy/IvyBinding.cs +++ b/CSharp/Ivy/Ivy/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;
}
|