Finishing touches
This commit is contained in:
parent
2d55eb52cd
commit
31d520d677
4 changed files with 42 additions and 32 deletions
|
|
@ -27,7 +27,7 @@ namespace AuroraRecordGenerator
|
|||
/// </summary>
|
||||
/// <param name="val"></param>
|
||||
/// <returns></returns>
|
||||
public static string SpaceIfValue(this string val) => string.IsNullOrWhiteSpace(val) ? string.Empty : " " + val + " ";
|
||||
public static string SpaceIfValue(this string val) => string.IsNullOrWhiteSpace(val) ? string.Empty : $" {val} ";
|
||||
|
||||
public static string IfEmpty(this string target, string fallback) =>
|
||||
target.IsEmpty() ? fallback : target;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue