Post BAML CodecTesting

Multiple Changes
This commit is contained in:
Trevor Payne
2022-09-05 23:51:12 -05:00
parent d302a1b06b
commit 960c882436
8 changed files with 253 additions and 145 deletions

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Essentials.Core
{
public static class StringExtensions
{
public static string NullIfEmpty(this string s)
{
return string.IsNullOrEmpty(s) ? null : s;
}
public static string NullIfWhiteSpace(this string s)
{
return string.IsNullOrEmpty(s.Trim()) ? null : s;
}
}
}