コード例 #1
0
 /// <summary>
 /// Returns true if NullableClass instances are equal
 /// </summary>
 /// <param name="input">Instance of NullableClass to be compared</param>
 /// <returns>Boolean</returns>
 public bool Equals(NullableClass input)
 {
     return(OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual);
 }
コード例 #2
0
        /// <summary>
        /// Returns true if NullableClass instances are equal
        /// </summary>
        /// <param name="input">Instance of NullableClass to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(NullableClass input)
        {
            if (input == null)
            {
                return(false);
            }

            return(base.Equals(input) &&
                   (
                       this.IntegerProp == input.IntegerProp ||
                       (this.IntegerProp != null &&
                        this.IntegerProp.Equals(input.IntegerProp))
                   ) && base.Equals(input) &&
                   (
                       this.NumberProp == input.NumberProp ||
                       (this.NumberProp != null &&
                        this.NumberProp.Equals(input.NumberProp))
                   ) && base.Equals(input) &&
                   (
                       this.BooleanProp == input.BooleanProp ||
                       (this.BooleanProp != null &&
                        this.BooleanProp.Equals(input.BooleanProp))
                   ) && base.Equals(input) &&
                   (
                       this.StringProp == input.StringProp ||
                       (this.StringProp != null &&
                        this.StringProp.Equals(input.StringProp))
                   ) && base.Equals(input) &&
                   (
                       this.DateProp == input.DateProp ||
                       (this.DateProp != null &&
                        this.DateProp.Equals(input.DateProp))
                   ) && base.Equals(input) &&
                   (
                       this.DatetimeProp == input.DatetimeProp ||
                       (this.DatetimeProp != null &&
                        this.DatetimeProp.Equals(input.DatetimeProp))
                   ) && base.Equals(input) &&
                   (
                       this.ArrayNullableProp == input.ArrayNullableProp ||
                       this.ArrayNullableProp != null &&
                       this.ArrayNullableProp.SequenceEqual(input.ArrayNullableProp)
                   ) && base.Equals(input) &&
                   (
                       this.ArrayAndItemsNullableProp == input.ArrayAndItemsNullableProp ||
                       this.ArrayAndItemsNullableProp != null &&
                       this.ArrayAndItemsNullableProp.SequenceEqual(input.ArrayAndItemsNullableProp)
                   ) && base.Equals(input) &&
                   (
                       this.ArrayItemsNullable == input.ArrayItemsNullable ||
                       this.ArrayItemsNullable != null &&
                       this.ArrayItemsNullable.SequenceEqual(input.ArrayItemsNullable)
                   ) && base.Equals(input) &&
                   (
                       this.ObjectNullableProp == input.ObjectNullableProp ||
                       this.ObjectNullableProp != null &&
                       this.ObjectNullableProp.SequenceEqual(input.ObjectNullableProp)
                   ) && base.Equals(input) &&
                   (
                       this.ObjectAndItemsNullableProp == input.ObjectAndItemsNullableProp ||
                       this.ObjectAndItemsNullableProp != null &&
                       this.ObjectAndItemsNullableProp.SequenceEqual(input.ObjectAndItemsNullableProp)
                   ) && base.Equals(input) &&
                   (
                       this.ObjectItemsNullable == input.ObjectItemsNullable ||
                       this.ObjectItemsNullable != null &&
                       this.ObjectItemsNullable.SequenceEqual(input.ObjectItemsNullable)
                   ));
        }