Gnip.Client.Resource.Rules.Equals C# (CSharp) Method

Equals() public method

Determines whether the specified Object is equal to the current Object. Ths performs a shallow equals where any reference types are compared by reference.
public Equals ( object o ) : bool
o object the specifies object
return bool
        public override bool Equals(object o)
        {
            if (this == o)
                return true;
            if (o == null || GetType() != o.GetType())
                return false;

            Rules that = (Rules)o;

            return (this.Items == that.Items);
        }