Exemple #1
0
        public bool Equals(User second)
        {
            // If parameter is null return false:
            if ((object)second == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(FBAccount.Equals(second.FBAccount) || Id == second.Id);
        }
Exemple #2
0
        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.
            User second = obj as User;

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

            // Return true if the fields match:
            return(FBAccount.Equals(second.FBAccount) || Id == second.Id);
        }