private int HashCollection(ICollection coll)
{
if (coll == null)
{
return 0;
}
int hash = 0;
IEnumerator it1 = coll.GetEnumerator();
while (it1.MoveNext())
{
Object o = it1.Current;
if (o is byte[])
{
hash += Org.BouncyCastle.Utilities.Arrays.GetHashCode((byte[])o);
}
else
{
hash += o.GetHashCode();
}
}
return hash;
}