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;
}
}
}