mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
20 lines
454 B
C#
20 lines
454 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
|
|||
|
namespace MediaBrowser.Model.Extensions
|
|||
|
{
|
|||
|
public static class ListHelper
|
|||
|
{
|
|||
|
public static bool ContainsIgnoreCase(List<string> list, string value)
|
|||
|
{
|
|||
|
if (value == null)
|
|||
|
{
|
|||
|
throw new ArgumentNullException("value");
|
|||
|
}
|
|||
|
|
|||
|
return list.Contains(value, StringComparer.OrdinalIgnoreCase);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|