From c5bc3779ba4358726cf2ae0ebecf267b3f850f3a Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:56:53 +0000 Subject: Utilisateur : Fcolin Date : 22/12/05 Heure : 17:48 Archivé dans $/CSharp/Ivy Commentaire: string dictionary au lieu de hastable (vss 5) --- CSharp/Ivy/IvyPPC/IvyBinding.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'CSharp/Ivy/IvyPPC') 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; -- cgit v1.1