2007/12/17 10:25
int.Parse(int value)와 Convert.ToInt(object value)와의 차이점 General .NET2007/12/17 10:25
public static int Parse(string s)
{
{
return int.Parse(s, NumberStyles.Integer, null);
}
public static int Parse(string s, NumberStyles style, IFormatProvider provider)
{
NumberFormatInfo info1 = NumberFormatInfo.GetInstance(provider);
NumberFormatInfo.ValidateParseStyle(style);
return Number.ParseInt32(s, style, info1);
}
public static int ToInt32(string value)
{
if (value == null)
return 0;
return int.Parse(value);
}
'General .NET' 카테고리의 다른 글
| Socket Class (0) | 2007/12/17 |
|---|---|
| DataTable.NewRow (0) | 2007/12/17 |
| int.Parse(int value)와 Convert.ToInt(object value)와의 차이점 (0) | 2007/12/17 |
| 닷넷 전용 어셈블리 (0) | 2007/12/17 |
| 델리게이트 (0) | 2007/12/17 |
| 제너릭 (0) | 2007/12/17 |
