fix:1、添加项目
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
namespace FlowerPower
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user