22 lines
449 B
C#
22 lines
449 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;
|
|
}
|
|
}
|
|
}
|