MediaPortal.Player.Subtitles.SubtitleOption.Equals C# (CSharp) Method

Equals() public method

public Equals ( object o ) : bool
o object
return bool
    public override bool Equals(object o)
    {
      if (o == null)
      {
        return false;
      }
      if (o is SubtitleOption)
      {
        SubtitleOption other = o as SubtitleOption;
        if (other.type != this.type)
        {
          return false;
        }
        else if (other.bitmapIndex != this.bitmapIndex)
        {
          return false;
        }
        else if (!other.language.Equals(this.language))
        {
          return false;
        }
        else if ((this.entry != null && !this.entry.Equals(other.entry)) || this.entry == null && other.entry != null)
        {
          return false;
        }
        else
        {
          return true;
        }
      }
      else
      {
        return false;
      }
    }
  }