public class ExtensionAttribute : Attribute { }
/// <summary>
/// 扩展String方法
/// </summary>
public static class StringExtension
{
public static int ToInt(this string str)
{
int result = 0;
int.TryParse(str, out result);
return result;
}
}
/// <summary>
/// 扩展String方法
/// </summary>
public static class StringExtension
{
public static int ToInt(this string str)
{
int result = 0;
int.TryParse(str, out result);
return result;
}
}