mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
better Series.ToString()
This commit is contained in:
@@ -5,6 +5,10 @@ namespace NzbDrone.Common
|
||||
{
|
||||
public static class StringExtension
|
||||
{
|
||||
public static string NullSafe(this string target)
|
||||
{
|
||||
return ((object)target).NullSafe().ToString();
|
||||
}
|
||||
|
||||
public static object NullSafe(this object target)
|
||||
{
|
||||
@@ -12,11 +16,6 @@ namespace NzbDrone.Common
|
||||
return "[NULL]";
|
||||
}
|
||||
|
||||
public static string NullSafe(this string target)
|
||||
{
|
||||
return ((object)target).NullSafe().ToString();
|
||||
}
|
||||
|
||||
public static string FirstCharToUpper(this string input)
|
||||
{
|
||||
return input.First().ToString().ToUpper() + String.Join("", input.Skip(1));
|
||||
|
Reference in New Issue
Block a user