diff options
author | fcolin | 2007-02-01 09:56:53 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:56:53 +0000 |
commit | c5bc3779ba4358726cf2ae0ebecf267b3f850f3a (patch) | |
tree | 545a2e5b0a96ca95380f58705cbd1b604a5fbe79 | |
parent | f7c2f1cd447d7629af0277adcc1539629ee01fa7 (diff) | |
download | ivy-csharp-c5bc3779ba4358726cf2ae0ebecf267b3f850f3a.zip ivy-csharp-c5bc3779ba4358726cf2ae0ebecf267b3f850f3a.tar.gz ivy-csharp-c5bc3779ba4358726cf2ae0ebecf267b3f850f3a.tar.bz2 ivy-csharp-c5bc3779ba4358726cf2ae0ebecf267b3f850f3a.tar.xz |
Utilisateur : Fcolin Date : 22/12/05 Heure : 17:48 Archivé dans $/CSharp/Ivy Commentaire: string dictionary au lieu de hastable (vss 5)
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyBinding.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyBinding.cs b/CSharp/Ivy/IvyPPC/IvyBinding.cs index 09e22c9..0c005d8 100644 --- a/CSharp/Ivy/IvyPPC/IvyBinding.cs +++ b/CSharp/Ivy/IvyPPC/IvyBinding.cs @@ -1,5 +1,6 @@ using System;
using System.Collections;
+using System.Collections.Specialized;
using System.Text.RegularExpressions;
namespace IvyBus
@@ -52,7 +53,7 @@ namespace IvyBus internal string msgname; // message name
internal string[] msgargs; // list of message args names
static string msgtag; // send message name
- static Hashtable args_values = null; // send message args[name]=value
+ static StringDictionary args_values = null; // send message args[name]=value
public IvyBindingSimple(ushort id, string exp)
: base(id, exp)
@@ -67,7 +68,7 @@ namespace IvyBus {
string[] msg = message.Split(' ');
msgtag = msg[0];
- args_values = new Hashtable();
+ args_values = new StringDictionary();
for( int sub=1 ; sub < msg.Length; sub++ )
{
string[] arg = msg[sub].Split('='); // champ = valeur
@@ -91,7 +92,7 @@ namespace IvyBus args = new string[msgargs.Length];
for( int sub= 0; sub < msgargs.Length; sub++)
{
- args[sub] = (string)args_values[msgargs[sub]];
+ args[sub] = args_values[msgargs[sub]];
}
}
return args;
|