Example #1
0
 public static string DefaultIfNullOrEmpty(string value, string defaultValue)
 {
     return(Compat.IsNullOrWhiteSpace(value) ? defaultValue : value);
 }
 private string GetWritableLineTypeName(string lineTypeName)
 {
     return(Compat.IsNullOrWhiteSpace(lineTypeName) ? "CONTINUOUS" : lineTypeName);
 }
 public static Func <string, string> DefaultIfNullOrEmpty(string defaultValue)
 {
     return(value => Compat.IsNullOrWhiteSpace(value) ? defaultValue : value);
 }