mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
Pushing missing changes
This commit is contained in:
20
MediaBrowser.Model/Extensions/ModelExtensions.cs
Normal file
20
MediaBrowser.Model/Extensions/ModelExtensions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
namespace MediaBrowser.Model.Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Class ModelExtensions
|
||||
/// </summary>
|
||||
static class ModelExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Values the or default.
|
||||
/// </summary>
|
||||
/// <param name="str">The STR.</param>
|
||||
/// <param name="def">The def.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
public static string ValueOrDefault(this string str, string def = "")
|
||||
{
|
||||
return string.IsNullOrEmpty(str) ? def : str;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user