首页  编辑  

半角数字替换为全角数字

Tags: /C#/字符串处理/   Date Created:

string S = "2007 ;

for ( int i = 0 ; i <= 9 ; i ++ )

   S = S . Replace(( char )(( ushort ) '0' + i), ( char )(( ushort ) ' + i));

textBox1 . Text = S;