Equals() public méthode

Gets whether the internal values are equal.
public Equals ( object obj ) : bool
obj object The object to compre.
Résultat bool
Exemple #1
0
 public void AttributeColumnEquality()
 {
     var column = new AttributeColumn(null, 0);
     Assert.IsTrue(column.Equals(new AttributeColumn(null, 0)));
     Assert.IsTrue(column.Equals(new AttributeColumn(typeof(ComponentAttributes), 0)));
     Assert.IsFalse(column.Equals(null));
     Assert.IsFalse(column.Equals(0));
 }
Exemple #2
0
        public void AttributeColumnEquality()
        {
            var column = new AttributeColumn(null, 0);

            Assert.IsTrue(column.Equals(new AttributeColumn(null, 0)));
            Assert.IsTrue(column.Equals(new AttributeColumn(typeof(ComponentAttributes), 0)));
            Assert.IsFalse(column.Equals(null));
            Assert.IsFalse(column.Equals(0));
        }