Example #1
0
        public bool Equals(SoomlaEntity <T> g)
        {
            // If parameter is null return false:
            if ((object)g == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(_id == g._id);
        }
Example #2
0
        // Equality

        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.
            SoomlaEntity <T> g = obj as SoomlaEntity <T>;

            if ((System.Object)g == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(_id == g._id);
        }