Files
juipnet/Services/Hncore.Pass.OSS/UEditor/StringExtension.cs
wanyongkang d318014316 初始提交
2020-10-07 20:25:03 +08:00

22 lines
470 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace UEditor.Core
{
public static class StringExtension
{
public static bool IsNullOrWhiteSpace(this string value)
{
if (value == null) return true;
for (int i = 0; i < value.Length; i++)
{
if (!Char.IsWhiteSpace(value[i])) return false;
}
return true;
}
}
}