samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SubCategory.cs
/// <summary>
/// Returns true if SubCategory instances are equal
/// </summary>
/// <param name="input">Instance of SubCategory to be compared</param>
/// <returns>Boolean</returns>
Returns true if SubCategory instances are equal
Returns true if SubCategory instances are equal
public bool Equals(SubCategory input)
        {
            if (input == null)
                return false;
            return 
                (
                    this.Category == input.Category ||
                    (this.Category != null &&
                    this.Category.Equals(input.Category))
                ) && 
                (
                    this.Category2 == input.Category2 ||
                    (this.Category2 != null &&
                    this.Category2.Equals(input.Category2))
                ) && 
                (
                    this.Pets == input.Pets ||
                    this.Pets != null &&
                    input.Pets != null &&
                    this.Pets.SequenceEqual(input.Pets)
                );
        }
public bool Equals ( SubCategory input ) { if ( input == null ) return false ; return ( this . Category == input . Category || ( this . Category != null && this . Category . Equals ( input . Category ) ) ) && ( this . Category2 == input . Category2 || ( this . Category2 != null && this . Category2 . Equals ( input . Category2 ) ) ) && ( this . Pets == input . Pets || this . Pets != null && input . Pets != null && this . Pets . SequenceEqual ( input . Pets ) ) ; }
Returns true if SubCategory instances are equal
Returns true if SubCategory instances are equal
None
input
SubCategory
Instance of SubCategory to be compared
Instance of SubCategory to be compared