12345678910111213141516171819202122232425262728 |
- 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);
- }
- public static bool ContainsIgnoreCase(string[] list, string value)
- {
- if (value == null)
- {
- throw new ArgumentNullException("value");
- }
- return list.Contains(value, StringComparer.OrdinalIgnoreCase);
- }
- }
- }
|