Example #1
0
        public override Object Clone()
        {
            RowRecord rec = new RowRecord(field_1_row_number);

            rec.field_2_first_col    = field_2_first_col;
            rec.field_3_last_col     = field_3_last_col;
            rec.field_4_height       = field_4_height;
            rec.field_5_optimize     = field_5_optimize;
            rec.field_6_reserved     = field_6_reserved;
            rec.field_7_option_flags = field_7_option_flags;
            rec.field_8_option_flags = field_8_option_flags;
            return(rec);
        }
Example #2
0
        public override bool Equals(Object obj)
        {
            if (!(obj is RowRecord))
            {
                return(false);
            }
            RowRecord loc = (RowRecord)obj;

            if (this.RowNumber == loc.RowNumber)
            {
                return(true);
            }
            return(false);
        }
Example #3
0
        public int CompareTo(Object obj)
        {
            RowRecord loc = (RowRecord)obj;

            if (this.RowNumber == loc.RowNumber)
            {
                return(0);
            }
            if (this.RowNumber < loc.RowNumber)
            {
                return(-1);
            }
            if (this.RowNumber > loc.RowNumber)
            {
                return(1);
            }
            return(-1);
        }