samples/server/petstore/aspnetcore/src/IO.Swagger/Models/Dog.cs
/// <summary>
/// Returns true if Dog instances are equal
/// </summary>
/// <param name="other">Instance of Dog to be compared</param>
/// <returns>Boolean</returns>
Returns true if Dog instances are equal
Returns true if Dog instances are equal
public bool Equals(Dog other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return 
                (
                    Bark == other.Bark ||
                    Bark != null &&
                    Bark.Equals(other.Bark)
                ) && 
                (
                    Breed == other.Breed ||
                    Breed != null &&
                    Breed.Equals(other.Breed)
                );
        }
public bool Equals ( Dog other ) { if ( ReferenceEquals ( null , other ) ) return false ; if ( ReferenceEquals ( this , other ) ) return true ; return ( Bark == other . Bark || Bark != null && Bark . Equals ( other . Bark ) ) && ( Breed == other . Breed || Breed != null && Breed . Equals ( other . Breed ) ) ; }
Returns true if Dog instances are equal
Returns true if Dog instances are equal
None
other
Dog
Instance of Dog to be compared
Instance of Dog to be compared