mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
19 lines
461 B
C#
19 lines
461 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace MediaBrowser.Model.Extensions
|
|
{
|
|
public static class ListHelper
|
|
{
|
|
public static bool ContainsIgnoreCase(IEnumerable<string> list, string value)
|
|
{
|
|
if (value == null)
|
|
{
|
|
throw new ArgumentNullException("value");
|
|
}
|
|
|
|
return list.Contains(value, StringComparer.OrdinalIgnoreCase);
|
|
}
|
|
}
|
|
}
|