示例#1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }

            IForStatement statement = obj as IForStatement;

            if (statement == null)
            {
                return(false);
            }

            return
                (Initializer.Equals(statement.Initializer) &&
                 Increment.Equals(statement.Increment) &&
                 Body.Equals(statement.Body) &&
                 Condition.Equals(statement.Condition));
        }
示例#2
0
 /// <devdoc>
 /// <para>Indicates whether the <see cref='System.Windows.Forms.NumericUpDown.Increment'/> property should be
 ///    persisted.</para>
 /// </devdoc>
 private bool ShouldSerializeIncrement()
 {
     return(!Increment.Equals(NumericUpDown.DefaultIncrement));
 }
 /// Indicates whether the Increment property should be persisted.
 private bool ShouldSerializeIncrement()
 {
     return(!Increment.Equals(DataGridViewNumericUpDownCell.DATAGRIDVIEWNUMERICUPDOWNCELL_defaultIncrement));
 }