public bool IsIdentical(IClone other)
{
//1. make sure that the 'other' object is pointing to a valid object
if (null == other)
throw new COMException("Invalid object.");
//2. verify the type of 'other'
if (!(other is TriangleElementClass))
throw new COMException("Bad object type.");
//3. test if the other is the 'this'
if ((TriangleElementClass)other == this)
return true;
return false;
}