달력

02

« 2012/02 »

  •  
  •  
  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  •  
  •  
  •  
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
Posted by -세티-