Ejemplo n.º 1
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(SixByteChunk rhs)
        {
            bool ivarsEqual = true;

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



            if (!(rhs._otherParameters.Length == 6))
            {
                ivarsEqual = false;
            }
            if (ivarsEqual)
            {
                for (int idx = 0; idx < 6; idx++)
                {
                    if (!(_otherParameters[idx] == rhs._otherParameters[idx]))
                    {
                        ivarsEqual = false;
                    }
                }
            }


            return(ivarsEqual);
        }
Ejemplo n.º 2
0
 ///<summary>
 ///Object appearance
 ///</summary>
 public void setObjectAppearance(SixByteChunk pObjectAppearance)
 {
     _objectAppearance = pObjectAppearance;
 }
Ejemplo n.º 3
0
 ///<summary>
 ///segment appearance
 ///</summary>
 public void setSegmentAppearance(SixByteChunk pSegmentAppearance)
 {
     _segmentAppearance = pSegmentAppearance;
 }
 ///<summary>
 ///segment appearance
 ///</summary>
 public void setSegmentAppearance(SixByteChunk pSegmentAppearance)
 {
     _segmentAppearance = pSegmentAppearance;
 }
Ejemplo n.º 5
0
        /**
         * Compares for reference equality and value equality.
         */
        public bool equals(SixByteChunk rhs)
        {
            bool ivarsEqual = true;

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

            if( ! (rhs._otherParameters.Length == 6)) ivarsEqual = false;
            if(ivarsEqual)
            {

                for(int idx = 0; idx < 6; idx++)
                {
                    if(!(_otherParameters[idx] == rhs._otherParameters[idx])) ivarsEqual = false;
                }
            }

            return ivarsEqual;
        }
 ///<summary>
 ///Object appearance
 ///</summary>
 public void setObjectAppearance(SixByteChunk pObjectAppearance)
 {
     _objectAppearance = pObjectAppearance;
 }