jellyfin/MediaBrowser.Model/Extensions/ModelExtensions.cs
Luke Pulverenti 2bfcf89abf updated nuget
2013-05-12 16:30:23 -04:00

21 lines
538 B
C#

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>
internal static string ValueOrDefault(this string str, string def = "")
{
return string.IsNullOrEmpty(str) ? def : str;
}
}
}