Add inheritdoc comment and squash simple method bodies

pull/2502/head
Vasily 5 years ago
parent 456f571343
commit f4ccee5801

@ -2919,19 +2919,16 @@ namespace MediaBrowser.Controller.Entities
public virtual bool SupportsExternalTransfer => false;
/// <inheritdoc />
public override bool Equals(object obj)
{
return obj is BaseItem baseItem && this.Equals(baseItem);
}
public bool Equals(BaseItem item)
{
return Object.Equals(Id, item?.Id);
}
/// <inheritdoc />
public bool Equals(BaseItem item) => Object.Equals(Id, item?.Id);
public override int GetHashCode()
{
return HashCode.Combine(Id);
}
/// <inheritdoc />
public override int GetHashCode() => HashCode.Combine(Id);
}
}

Loading…
Cancel
Save