mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-03 06:41:19 +00:00
Merge pull request #16395 from jaxx2104/fix/ca2263-prefer-generic-enum-overload
Use generic Enum overloads to resolve CA2263 warnings
This commit is contained in:
commit
8795ed4ebf
2 changed files with 2 additions and 2 deletions
|
|
@ -324,7 +324,7 @@ namespace MediaBrowser.Model.Dlna
|
|||
return !condition.IsRequired;
|
||||
}
|
||||
|
||||
var expected = (TransportStreamTimestamp)Enum.Parse(typeof(TransportStreamTimestamp), condition.Value, true);
|
||||
var expected = Enum.Parse<TransportStreamTimestamp>(condition.Value, true);
|
||||
|
||||
switch (condition.Condition)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2009,7 +2009,7 @@ namespace MediaBrowser.Model.Dlna
|
|||
}
|
||||
else if (condition.Condition == ProfileConditionType.NotEquals)
|
||||
{
|
||||
item.SetOption(qualifier, "rangetype", string.Join(',', Enum.GetNames(typeof(VideoRangeType)).Except(values)));
|
||||
item.SetOption(qualifier, "rangetype", string.Join(',', Enum.GetNames<VideoRangeType>().Except(values)));
|
||||
}
|
||||
else if (condition.Condition == ProfileConditionType.EqualsAny)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue