7 lines
253 B
C#
7 lines
253 B
C#
namespace EnotaryoPH.Web.Common.Extensions
|
|
{
|
|
public static class StringExtensions
|
|
{
|
|
public static string DefaultIfEmpty(this string s, string defaultValue) => !string.IsNullOrWhiteSpace(s) ? s : (defaultValue ?? string.Empty);
|
|
}
|
|
} |