示例#1
0
        /**
          * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
          */
        public bool equals(ObjectType rhs)
        {
            bool ivarsEqual = true;

            if(rhs.GetType() != this.GetType())
            return false;

             if( ! (_entityKind == rhs._entityKind)) ivarsEqual = false;
             if( ! (_domain == rhs._domain)) ivarsEqual = false;
             if( ! (_country == rhs._country)) ivarsEqual = false;
             if( ! (_category == rhs._category)) ivarsEqual = false;
             if( ! (_subcategory == rhs._subcategory)) ivarsEqual = false;

            return ivarsEqual;
        }
 ///<summary>
 ///Object type
 ///</summary>
 public void setObjectType(ObjectType pObjectType)
 {
     _objectType = pObjectType;
 }
 ///<summary>
 ///Object type
 ///</summary>
 public void setObjectType(ObjectType pObjectType)
 {
     _objectType = pObjectType;
 }