1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-14 15:03:42 +01:00
Radarr/NzbDrone.Common/TryParseExtension.cs

20 lines
375 B
C#
Raw Normal View History

using System;
using System.Linq;
namespace NzbDrone.Common
{
public static class TryParseExtension
{
public static Nullable<int> ParseInt32(this string source)
{
Int32 result = 0;
if (Int32.TryParse(source, out result))
{
return result;
}
return null;
}
}
}