EpForceDirectedGraph.cs.FDGVector2.Equals C# (CSharp) Method

Equals() public method

public Equals ( System obj ) : bool
obj System
return bool
        public override bool Equals(System.Object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return false;
            }

            // If parameter cannot be cast to Point return false.
            FDGVector2 p = obj as FDGVector2;
            if ((System.Object)p == null)
            {
                return false;
            }

            // Return true if the fields match:
            return (x == p.x) && (y==p.y);
        }

Same methods

FDGVector2::Equals ( FDGVector2 p ) : bool