mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
extract classes
This commit is contained in:
16
MediaBrowser.Model/Extensions/BoolHelper.cs
Normal file
16
MediaBrowser.Model/Extensions/BoolHelper.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace MediaBrowser.Model.Extensions
|
||||
{
|
||||
public static class BoolHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// Tries the parse culture invariant.
|
||||
/// </summary>
|
||||
/// <param name="s">The s.</param>
|
||||
/// <param name="result">The result.</param>
|
||||
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
|
||||
public static bool TryParseCultureInvariant(string s, out bool result)
|
||||
{
|
||||
return bool.TryParse(s, out result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user