samples/server/petstore/aspnetcore-mixed/src/IO.Swagger/Models/User.cs
/// <summary>
/// Returns true if User instances are equal
/// </summary>
/// <param name="other">Instance of User to be compared</param>
/// <returns>Boolean</returns>
Returns true if User instances are equal
Returns true if User instances are equal
public bool Equals(User other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return 
                (
                    Id == other.Id ||
                    Id != null &&
                    Id.Equals(other.Id)
                ) && 
                (
                    Username == other.Username ||
                    Username != null &&
                    Username.Equals(other.Username)
                ) && 
                (
                    FirstName == other.FirstName ||
                    FirstName != null &&
                    FirstName.Equals(other.FirstName)
                ) && 
                (
                    LastName == other.LastName ||
                    LastName != null &&
                    LastName.Equals(other.LastName)
                ) && 
                (
                    Email == other.Email ||
                    Email != null &&
                    Email.Equals(other.Email)
                ) && 
                (
                    Password == other.Password ||
                    Password != null &&
                    Password.Equals(other.Password)
                ) && 
                (
                    Phone == other.Phone ||
                    Phone != null &&
                    Phone.Equals(other.Phone)
                ) && 
                (
                    UserStatus == other.UserStatus ||
                    UserStatus != null &&
                    UserStatus.Equals(other.UserStatus)
                );
        }
public bool Equals ( User other ) { if ( ReferenceEquals ( null , other ) ) return false ; if ( ReferenceEquals ( this , other ) ) return true ; return ( Id == other . Id || Id != null && Id . Equals ( other . Id ) ) && ( Username == other . Username || Username != null && Username . Equals ( other . Username ) ) && ( FirstName == other . FirstName || FirstName != null && FirstName . Equals ( other . FirstName ) ) && ( LastName == other . LastName || LastName != null && LastName . Equals ( other . LastName ) ) && ( Email == other . Email || Email != null && Email . Equals ( other . Email ) ) && ( Password == other . Password || Password != null && Password . Equals ( other . Password ) ) && ( Phone == other . Phone || Phone != null && Phone . Equals ( other . Phone ) ) && ( UserStatus == other . UserStatus || UserStatus != null && UserStatus . Equals ( other . UserStatus ) ) ; }
Returns true if User instances are equal
Returns true if User instances are equal
None
other
User
Instance of User to be compared
Instance of User to be compared