refactor: Projektdateien migriert. Cloud-NuGet-Pakete durch lokale NuGet-Projekte ersetzt.
This commit is contained in:
22
HRD.WebApi/Extensions/StringExtensions.cs
Normal file
22
HRD.WebApi/Extensions/StringExtensions.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace HRD.WebApi.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 bool Contains(this string src, string toCheck, StringComparison comp)
|
||||
{
|
||||
return src.IndexOf(toCheck, comp) >= 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user