AForge.Math.Complex.Equals C# (CSharp) Method

Equals() public method

Returns a value indicating whether this instance is equal to the specified object.
public Equals ( object obj ) : bool
obj object An object to compare to this instance.
return bool
        public override bool Equals(object obj)
        {
            if (obj is Complex)
            {
                var c = (Complex) obj;
                return (Re == c.Re) && (Im == c.Im);
            }
            return false;
        }