mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			571 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			571 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
 | 
						|
namespace MediaBrowser.Model.Extensions
 | 
						|
{
 | 
						|
    public static class ListHelper
 | 
						|
    {
 | 
						|
        public static bool ContainsIgnoreCase(string[] list, string value)
 | 
						|
        {
 | 
						|
            if (value == null)
 | 
						|
            {
 | 
						|
                throw new ArgumentNullException(nameof(value));
 | 
						|
            }
 | 
						|
 | 
						|
            foreach (var item in list)
 | 
						|
            {
 | 
						|
                if (string.Equals(item, value, StringComparison.OrdinalIgnoreCase))
 | 
						|
                {
 | 
						|
                    return true;
 | 
						|
                }
 | 
						|
            }
 | 
						|
            return false;
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |