You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
706 B
22 lines
706 B
using System.Globalization;
|
|
|
|
namespace MediaBrowser.Model.Extensions
|
|
{
|
|
/// <summary>
|
|
/// Isolating these helpers allow this entire project to be easily converted to Java
|
|
/// </summary>
|
|
public static class IntHelper
|
|
{
|
|
/// <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 int result)
|
|
{
|
|
return int.TryParse(s, NumberStyles.Any, CultureInfo.InvariantCulture, out result);
|
|
}
|
|
}
|
|
}
|