mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-22 08:55:21 +00:00
In order to support the way some Smart Objects work, a clear directory join was needed in order to allow for clearing a selection in certain circumstances. In order to support finer-grained dependencies while developing plugins, the Development Device Factory was added.
20 lines
484 B
C#
20 lines
484 B
C#
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;
|
|
}
|
|
}
|
|
} |