isolate .net specific methods in model project

This commit is contained in:
Luke Pulverenti
2014-06-01 00:11:04 -04:00
parent d1e045f662
commit 20d35a6405
40 changed files with 336 additions and 187 deletions

View File

@@ -0,0 +1,18 @@
using System.Globalization;
namespace MediaBrowser.Model.Extensions
{
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);
}
}
}