1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-25 22:37:27 -04:00

Changed: Align GetValueOrDefault extension with netcore3.0 version

- netcore3.0 implements the extenion on IReadOnlyDictionary.
 - Dictionary implements both IReadonlyDictionary and IDictionary and
   so defining the extenion on both interfaces creates an ambiguous
   reference
 - IDictionary doesn't inherit from IReadOnlyDictionary

Either we have to add 'using NzbDrone.Common.Extenions;'
separately to resolve the ambiguity or we have to standardaize on only
having the extension on IReadOnlyDictionary.
This commit is contained in:
ta264
2019-10-14 22:47:19 +01:00
committed by Qstick
parent 057829c3b0
commit b5b43b8b3f
10 changed files with 25 additions and 28 deletions
@@ -27,7 +27,7 @@ namespace NzbDrone.Core.Parser.Model
/// It is expanded by the augmenters.
/// </summary>
[JsonIgnore]
public IDictionary<string, object> ExtraInfo = new Dictionary<string, object>();
public Dictionary<string, object> ExtraInfo = new Dictionary<string, object>();
public List<Language> Languages = new List<Language>();
public string ReleaseGroup { get; set; }
public string ReleaseHash { get; set; }