惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
A
About on SuperTechFans
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
U
Unit 42
WordPress大学
WordPress大学
Y
Y Combinator Blog
罗磊的独立博客
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
博客园 - 叶小钗
Stack Overflow Blog
Stack Overflow Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
V
V2EX
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - 一碗豆芽汤(OneV)

C#一些基础知识回顾 2021年立个Flag,回顾十多年来的IT职业之路-----没事瞎BB 使用 Visual Studio 创建 .NET 5 控制台应用程序 log4net将日志进行分类,保存到不同的目录当中 .net 使用PowerShell获取电脑中的UUID .Net MVC中访问PC网页时,自动切换到移动端对应页面 微信开发第二篇:工具篇 微信开发第一篇:问题篇 [转载]ODAC (odp.net) 开发到部署 【项目开发】LigerUI+MVC的应用 VS中两个常用辅助工具 sqlite中常见的问题总结 第1次做面试官的随谈(二) 第1次做面试官的随谈(一) 转,有用 [转载收录]ASP.NET 2.0加密Web.config - 一碗豆芽汤(OneV) - 博客园 关于重构之Switch的处理【二】 - 一碗豆芽汤(OneV) - 博客园 重构的例子 关于重构之Switch的处理【一】如果是有序的话,如何处理
C# 全角符号转半角
一碗豆芽汤(OneV) · 2015-09-02 · via 博客园 - 一碗豆芽汤(OneV)
 1    public static string SBCCaseToNumberic(string SBCCase)
 2         {
 3             char[] c = SBCCase.ToCharArray();
 4             for (int i = 0; i < c.Length; i++)
 5             {
 6                 byte[] b = System.Text.Encoding.Unicode.GetBytes(c, i, 1);
 7                 if (b.Length == 2)
 8                 {
 9                     if (b[1] == 255)
10                     {
11                         b[0] = (byte)(b[0] + 32);
12                         b[1] = 0;
13                         c[i] = System.Text.Encoding.Unicode.GetChars(b)[0];
14                     }
15                 }
16             }
17             return new string(c);
18         }

posted @ 2015-09-02 17:23  一碗豆芽汤(OneV)  阅读(270)  评论(0)    收藏  举报