summaryrefslogtreecommitdiff
path: root/Ivy/IvyEventArgs.cs
diff options
context:
space:
mode:
authorfcolin2008-08-22 16:44:01 +0000
committerfcolin2008-08-22 16:44:01 +0000
commit8d10e8bbd1e19adc7c70e1101dbb69c213c910dd (patch)
treef41034ab66b1b3174277b07c8aa45791dadbaae8 /Ivy/IvyEventArgs.cs
parent7053d3d604920ab708076e107be4b55666c5af80 (diff)
downloadivy-csharp-8d10e8bbd1e19adc7c70e1101dbb69c213c910dd.zip
ivy-csharp-8d10e8bbd1e19adc7c70e1101dbb69c213c910dd.tar.gz
ivy-csharp-8d10e8bbd1e19adc7c70e1101dbb69c213c910dd.tar.bz2
ivy-csharp-8d10e8bbd1e19adc7c70e1101dbb69c213c910dd.tar.xz
optimisation for parsing same regular expression from multiple client
using fxCop for code beauty fix bug on concurrent connect
Diffstat (limited to 'Ivy/IvyEventArgs.cs')
-rw-r--r--Ivy/IvyEventArgs.cs16
1 files changed, 9 insertions, 7 deletions
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;
+
/// <summary> The EventArgs Classes
/// </summary>
///
@@ -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)
{