mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			536 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			536 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>
 | 
						|
        public static string ValueOrDefault(this string str, string def = "")
 | 
						|
        {
 | 
						|
            return string.IsNullOrEmpty(str) ? def : str;
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |