Logo
Explore Help
Register Sign In
starred/jellyfin-jellyfin-1
1
0
Fork 0
You've already forked jellyfin-jellyfin-1
mirror of https://github.com/jellyfin/jellyfin.git synced 2025-12-16 22:13:06 +03:00
Code Issues Packages Projects Releases Wiki Activity
Files
ba610b5094c3ca606287585218a88467a44874d3
jellyfin-jellyfin-1/MediaBrowser.Model/Extensions/ListHelper.cs

25 lines
574 B
C#
Raw Normal View History

Add GPL modules
2018-12-27 18:27:57 -05:00
using System;
namespace MediaBrowser.Model.Extensions
{
public static class ListHelper
{
public static bool ContainsIgnoreCase(string[] list, string value)
{
if (value == null)
{
Mayor code cleanup Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.
2019-01-06 21:50:43 +01:00
throw new ArgumentNullException(nameof(value));
Add GPL modules
2018-12-27 18:27:57 -05:00
}
foreach (var item in list)
{
if (string.Equals(item, value, StringComparison.OrdinalIgnoreCase))
{
return true;
}
}
return false;
}
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 449ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API