Tests.CommonTests.ComplexObject.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
            public override bool Equals(object obj)
            {
                if (obj is ComplexObject)
                {
                    var item = obj as ComplexObject;
                    return item.SomeInt32Property == this.SomeInt32Property
                        && item.SomeTextProperty == this.SomeTextProperty;
                }

                return false;
            }
CommonTests.ComplexObject