diff options
| author | Vasily <just.one.man@yandex.ru> | 2020-03-05 15:03:17 +0300 |
|---|---|---|
| committer | Vasily <just.one.man@yandex.ru> | 2020-03-05 15:03:17 +0300 |
| commit | f4ccee58010c4420f827ce7f8eb037e2ccec1d82 (patch) | |
| tree | 6cc086400e6179eb70827d2d17d540ed6a187cf8 | |
| parent | 456f571343cfd524fd29e22207a806d5acd7d25a (diff) | |
Add inheritdoc comment and squash simple method bodies
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 8f504ebb0..9af8d1069 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -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); } } |
