代码
    public static class StringExtend
    {
        
public static bool IsNullOrEmpty(this string s)
        {
            
return string.IsNullOrEmpty(s);
        }

        
public static bool IsInt(this string s)
        {
            
int i;
            
return int.TryParse(s, out i);
        }

        
public static int ToInt(this string s)
        {
            
return int.Parse(s);
        }
    }

 

 

相关文章:

  • 2021-10-22
  • 2021-11-23
  • 2021-11-27
  • 2022-01-24
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2021-06-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2021-05-18
  • 2021-08-27
相关资源
相似解决方案