String IsNullOrWhiteSpace and IsNullOrEmpty extensions.

This commit is contained in:
Alexandru Macocian
2021-04-23 10:49:41 +02:00
parent ee341af2c3
commit 0288b385a0
2 changed files with 11 additions and 1 deletions
@@ -4,6 +4,16 @@ namespace System.Extensions
{
public static class StringExtensions
{
public static bool IsNullOrEmpty(this string s)
{
return string.IsNullOrEmpty(s);
}
public static bool IsNullOrWhiteSpace(this string s)
{
return string.IsNullOrWhiteSpace(s);
}
public static byte[] GetBytes(this string s)
{
return Encoding.UTF8.GetBytes(s);
@@ -6,7 +6,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RootNamespace>System</RootNamespace>
<Version>1.1.2</Version>
<Version>1.1.3</Version>
<Authors>Alexandru Macocian</Authors>
<RepositoryUrl>https://github.com/AlexMacocian/SystemExtensions</RepositoryUrl>
</PropertyGroup>