Files
Zoomatch_unity_ios/Assets/Scripts/Extend/StringExtend.cs
T
2026-05-28 15:23:36 +08:00

24 lines
550 B
C#

namespace ZooMatch
{
public static class StringExtend
{
public static double ToDouble(this string str)
{
double temp = 0d;
double.TryParse(str, out temp);
return temp;
}
public static float ToFloat(this string str)
{
float temp = 0;
float.TryParse(str, out temp);
return temp;
}
public static bool IsNullOrWhiteSpace(this string str)
{
return string.IsNullOrWhiteSpace(str);
}
}
}