mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 04:18:06 +02:00
18 lines
No EOL
582 B
C#
18 lines
No EOL
582 B
C#
using System.Globalization;
|
|
|
|
namespace MediaBrowser.Model.Extensions
|
|
{
|
|
public static class FloatHelper
|
|
{
|
|
/// <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 float result)
|
|
{
|
|
return float.TryParse(s, NumberStyles.Any, CultureInfo.InvariantCulture, out result);
|
|
}
|
|
}
|
|
} |