Exemple #1
0
        /// <summary>
        /// Returns true if objects are equal
        /// </summary>
        public bool Equals(NovaCreateServersSchedulerHint input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                (
                this.Group == input.Group ||
                (this.Group != null &&
                 this.Group.Equals(input.Group))
                );
        }
        /// <summary>
        /// Returns true if objects are equal
        /// </summary>
        public bool Equals(NovaCreateServersSchedulerHint input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     this.Group == input.Group ||
                     (this.Group != null &&
                      this.Group.Equals(input.Group))
                     ) &&
                 (
                     this.DifferentHost == input.DifferentHost ||
                     this.DifferentHost != null &&
                     input.DifferentHost != null &&
                     this.DifferentHost.SequenceEqual(input.DifferentHost)
                 ) &&
                 (
                     this.SameHost == input.SameHost ||
                     this.SameHost != null &&
                     input.SameHost != null &&
                     this.SameHost.SequenceEqual(input.SameHost)
                 ) &&
                 (
                     this.Cidr == input.Cidr ||
                     (this.Cidr != null &&
                      this.Cidr.Equals(input.Cidr))
                 ) &&
                 (
                     this.BuildNearHostIp == input.BuildNearHostIp ||
                     (this.BuildNearHostIp != null &&
                      this.BuildNearHostIp.Equals(input.BuildNearHostIp))
                 ));
        }