mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
better Series.ToString()
This commit is contained in:
parent
2d41ebcc78
commit
a216e37d6a
12 changed files with 35 additions and 30 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue