public override bool Equals(object obj)
{
RmAttributeValue other = obj as RmAttributeValue;
if (other == null)
return false;
lock (this.attributeValues) {
lock (other.attributeValues) {
if (this.attributeValues.Count != other.attributeValues.Count)
return false;
this.attributeValues.Sort();
other.attributeValues.Sort();
for (int i = 0; i < this.attributeValues.Count; i++) {
if (this.attributeValues[i].Equals(other.attributeValues[i]) == false)
return false;
}
}
}
return true;
}