首页 > 其他 > 详细

点击按钮触发事件调用存储过程3

时间:2019-07-06 17:40:42      阅读:107      评论:0      收藏:0      [点我收藏+]

using System;
using System.Collections.Generic;
using System.Text;

namespace Coeno.Tools

{

  public static class SDBC

  {

    public static string ToDBC(string input)

    {

      char[ ] c = input.ToCharArray();

      for (int i = 0; i< c.Length; i++)

      {

        if(c[i]==12288)

        {

          c[i]=(char)32; continue;

        }

        if(c[i]>65280&&c[i]<65375)

         c[i]=(char)(c[i]-65248);  

      }

      return new string(c);

    }     

  }

}

点击按钮触发事件调用存储过程3

原文:https://www.cnblogs.com/ximi07/p/11143089.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!