public bool Equals(SubscriptionPatchDocument obj)
        {
            if (DeclaredFunctions.Length != obj.DeclaredFunctions.Length)
            {
                return(false);
            }

            for (var index = 0; index < DeclaredFunctions.Length; index++)
            {
                if (DeclaredFunctions[index] != obj.DeclaredFunctions[index])
                {
                    return(false);
                }
            }

            return(obj.Script != Script);
        }
Ejemplo n.º 2
0
        public bool Equals(SubscriptionPatchDocument other)
        {
            if (DeclaredFunctions.Length != other.DeclaredFunctions.Length)
            {
                return(false);
            }

            if (Script != other.Script)
            {
                return(false);
            }

            for (var index = 0; index < DeclaredFunctions.Length; index++)
            {
                if (DeclaredFunctions[index] != other.DeclaredFunctions[index])
                {
                    return(false);
                }
            }

            return(true);
        }