From 8d10e8bbd1e19adc7c70e1101dbb69c213c910dd Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 22 Aug 2008 16:44:01 +0000 Subject: optimisation for parsing same regular expression from multiple client using fxCop for code beauty fix bug on concurrent connect --- Ivy/IvyEventArgs.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Ivy/IvyEventArgs.cs') diff --git a/Ivy/IvyEventArgs.cs b/Ivy/IvyEventArgs.cs index e394802..a08f314 100644 --- a/Ivy/IvyEventArgs.cs +++ b/Ivy/IvyEventArgs.cs @@ -1,9 +1,11 @@ -using System; -using System.Collections.Generic; -using System.Text; namespace IvyBus { + using System; + using System.Collections.Generic; + using System.Text; + using System.Collections.ObjectModel; + /// The EventArgs Classes /// /// @@ -66,13 +68,13 @@ namespace IvyBus get { return id; } } - public string[] Arguments + public string[] GetArguments() { - get { return args; } + return (string[])args.Clone(); } - public string this[int i] + public string this[int index] { - get { return args[i]; } + get { return args[index]; } } public IvyMessageEventArgs(IvyClient app, int id, string[] args) { -- cgit v1.1