Added overrides for == and != for list.

Fixes Mantis #3002
0.6.3-post-fixes
idb 2009-01-20 00:10:39 +00:00
parent 280ba00c68
commit afc48ce39c
1 changed files with 24 additions and 0 deletions

View File

@ -538,6 +538,30 @@ namespace OpenSim.Region.ScriptEngine.Shared
return a;
}
public static bool operator ==(list a, list b)
{
int la = -1;
int lb = -1;
try { la = a.Length; }
catch (NullReferenceException) { }
try { lb = b.Length; }
catch (NullReferenceException) { }
return la == lb;
}
public static bool operator !=(list a, list b)
{
int la = -1;
int lb = -1;
try { la = a.Length; }
catch (NullReferenceException) { }
try {lb = b.Length;}
catch (NullReferenceException) { }
return la != lb;
}
public void Add(object o)
{
object[] tmp;