代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
CSharp
】
获取汉字首字母
作者:
Dezai.CN
/ 发布于
2011/9/14
/
492
<div><span style="color: #808080">///</span><span style="color: #008000"> </span><span style="color: #808080"><summary></span><span style="color: #008000"> </span><span style="color: #808080">///</span><span style="color: #008000"> 在指定的字符串列表CnStr中检索符合拼音索引字符串 </span><span style="color: #808080">///</span><span style="color: #008000"> </span><span style="color: #808080"></summary></span><span style="color: #008000"> </span><span style="color: #808080">///</span><span style="color: #008000"> </span><span style="color: #808080"><param name="CnStr"></span><span style="color: #008000">汉字字符串</span><span style="color: #808080"></param></span><span style="color: #008000"> </span><span style="color: #808080">///</span><span style="color: #008000"> </span><span style="color: #808080"><returns></span><span style="color: #008000">相对应的汉语拼音首字母串</span><span style="color: #808080"></returns></span><span style="color: #008000"> </span><span style="color: #808080"> </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">string</span><span style="color: #000000"> GetSpellCode(</span><span style="color: #0000ff">string</span><span style="color: #000000"> CnStr) { </span><span style="color: #0000ff">string</span><span style="color: #000000"> strTemp</span><span style="color: #000000">=</span><span style="color: #800000">""</span><span style="color: #000000">; </span><span style="color: #0000ff">int</span><span style="color: #000000"> iLen</span><span style="color: #000000">=</span><span style="color: #000000">CnStr.Length; </span><span style="color: #0000ff">int</span><span style="color: #000000"> i</span><span style="color: #000000">=</span><span style="color: #800080">0</span><span style="color: #000000">; </span><span style="color: #0000ff">for</span><span style="color: #000000"> (i</span><span style="color: #000000">=</span><span style="color: #800080">0</span><span style="color: #000000">;i</span><span style="color: #000000"><=</span><span style="color: #000000">iLen</span><span style="color: #000000">-</span><span style="color: #800080">1</span><span style="color: #000000">;i</span><span style="color: #000000">++</span><span style="color: #000000">) { strTemp</span><span style="color: #000000">+=</span><span style="color: #000000">GetCharSpellCode(CnStr.Substring(i,</span><span style="color: #800080">1</span><span style="color: #000000">)); } </span><span style="color: #0000ff">return</span><span style="color: #000000"> strTemp; } </span><span style="color: #808080">///</span><span style="color: #008000"> </span><span style="color: #808080"><summary></span><span style="color: #008000"> </span><span style="color: #808080">///</span><span style="color: #008000"> 得到一个汉字的拼音第一个字母,如果是一个英文字母则直接返回大写字母 </span><span style="color: #808080">///</span><span style="color: #008000"> </span><span style="color: #808080"></summary></span><span style="color: #008000"> </span><span style="color: #808080">///</span><span style="color: #008000"> </span><span style="color: #808080"><param name="CnChar"></span><span style="color: #008000">单个汉字</span><span style="color: #808080"></param></span><span style="color: #008000"> </span><span style="color: #808080">///</span><span style="color: #008000"> </span><span style="color: #808080"><returns></span><span style="color: #008000">单个大写字母</span><span style="color: #808080"></returns></span><span style="color: #008000"> </span><span style="color: #808080"> </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">string</span><span style="color: #000000"> GetCharSpellCode(</span><span style="color: #0000ff">string</span><span style="color: #000000"> CnChar) { </span><span style="color: #0000ff">long</span><span style="color: #000000"> iCnChar; </span><span style="color: #0000ff">byte</span><span style="color: #000000">[] ZW </span><span style="color: #000000">=</span><span style="color: #000000"> System.Text.Encoding.Default.GetBytes(CnChar); </span><span style="color: #008000">//</span><span style="color: #008000">如果是字母,则直接返回 </span><span style="color: #008000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> (ZW.Length</span><span style="color: #000000">==</span><span style="color: #800080">1</span><span style="color: #000000">) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> CnChar.ToUpper(); } </span><span style="color: #0000ff">else</span><span style="color: #000000"> { </span><span style="color: #008000">//</span><span style="color: #008000"> get the array of byte from the single char </span><span style="color: #008000"> </span><span style="color: #0000ff">int</span><span style="color: #000000"> i1 </span><span style="color: #000000">=</span><span style="color: #000000"> (</span><span style="color: #0000ff">short</span><span style="color: #000000">)(ZW[</span><span style="color: #800080">0</span><span style="color: #000000">]); </span><span style="color: #0000ff">int</span><span style="color: #000000"> i2 </span><span style="color: #000000">=</span><span style="color: #000000"> (</span><span style="color: #0000ff">short</span><span style="color: #000000">)(ZW[</span><span style="color: #800080">1</span><span style="color: #000000">]); iCnChar </span><span style="color: #000000">=</span><span style="color: #000000"> i1</span><span style="color: #000000">*</span><span style="color: #800080">256</span><span style="color: #000000">+</span><span style="color: #000000">i2; } </span><span style="color: #008000">//</span><span style="color: #008000">expresstion </span><span style="color: #008000">//</span><span style="color: #008000">table of the constant list </span><span style="color: #008000">//</span><span style="color: #008000"> 'A'; </span><span style="color: #008000">//</span><span style="color: #008000">45217..45252 </span><span style="color: #008000">//</span><span style="color: #008000"> 'B'; </span><span style="color: #008000">//</span><span style="color: #008000">45253..45760 </span><span style="color: #008000">//</span><span style="color: #008000"> 'C'; </span><span style="color: #008000">//</span><span style="color: #008000">45761..46317 </span><span style="color: #008000">//</span><span style="color: #008000"> 'D'; </span><span style="color: #008000">//</span><span style="color: #008000">46318..46825 </span><span style="color: #008000">//</span><span style="color: #008000"> 'E'; </span><span style="color: #008000">//</span><span style="color: #008000">46826..47009 </span><span style="color: #008000">//</span><span style="color: #008000"> 'F'; </span><span style="color: #008000">//</span><span style="color: #008000">47010..47296 </span><span style="color: #008000">//</span><span style="color: #008000"> 'G'; </span><span style="color: #008000">//</span><span style="color: #008000">47297..47613 </span><span style="color: #008000">//</span><span style="color: #008000"> 'H'; </span><span style="color: #008000">//</span><span style="color: #008000">47614..48118 </span><span style="color: #008000">//</span><span style="color: #008000"> 'J'; </span><span style="color: #008000">//</span><span style="color: #008000">48119..49061 </span><span style="color: #008000">//</span><span style="color: #008000"> 'K'; </span><span style="color: #008000">//</span><span style="color: #008000">49062..49323 </span><span style="color: #008000">//</span><span style="color: #008000"> 'L'; </span><span style="color: #008000">//</span><span style="color: #008000">49324..49895 </span><span style="color: #008000">//</span><span style="color: #008000"> 'M'; </span><span style="color: #008000">//</span><span style="color: #008000">49896..50370 </span><span style="color: #008000">//</span><span style="color: #008000"> 'N'; </span><span style="color: #008000">//</span><span style="color: #008000">50371..50613 </span><span style="color: #008000">//</span><span style="color: #008000"> 'O'; </span><span style="color: #008000">//</span><span style="color: #008000">50614..50621 </span><span style="color: #008000">//</span><span style="color: #008000"> 'P'; </span><span style="color: #008000">//</span><span style="color: #008000">50622..50905 </span><span style="color: #008000">//</span><span style="color: #008000"> 'Q'; </span><span style="color: #008000">//</span><span style="color: #008000">50906..51386 </span><span style="color: #008000">//</span><span style="color: #008000"> 'R'; </span><span style="color: #008000">//</span><span style="color: #008000">51387..51445 </span><span style="color: #008000">//</span><span style="color: #008000"> 'S'; </span><span style="color: #008000">//</span><span style="color: #008000">51446..52217 </span><span style="color: #008000">//</span><span style="color: #008000"> 'T'; </span><span style="color: #008000">//</span><span style="color: #008000">52218..52697 </span><span style="color: #008000">//</span><span style="color: #008000">没有U,V </span><span style="color: #008000">//</span><span style="color: #008000"> 'W'; </span><span style="color: #008000">//</span><span style="color: #008000">52698..52979 </span><span style="color: #008000">//</span><span style="color: #008000"> 'X'; </span><span style="color: #008000">//</span><span style="color: #008000">52980..53640 </span><span style="color: #008000">//</span><span style="color: #008000"> 'Y'; </span><span style="color: #008000">//</span><span style="color: #008000">53689..54480 </span><span style="color: #008000">//</span><span style="color: #008000"> 'Z'; </span><span style="color: #008000">//</span><span style="color: #008000">54481..55289 </span><span style="color: #008000">//</span><span style="color: #008000"> iCnChar match the constant </span><span style="color: #008000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">45217</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">45252</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">A</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">45253</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">45760</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">B</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">45761</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">46317</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">C</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">46318</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">46825</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">D</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">46826</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">47009</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">E</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">47010</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">47296</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">F</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">47297</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">47613</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">G</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">47614</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">48118</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">H</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">48119</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">49061</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">J</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">49062</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">49323</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">K</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">49324</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">49895</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">L</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">49896</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">50370</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">M</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">50371</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">50613</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">N</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">50614</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">50621</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">O</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">50622</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">50905</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">P</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">50906</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #000000">.</span><span style="color: #800080">51386</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Q</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">51387</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">51445</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">R</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">51446</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">52217</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">S</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">52218</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">52697</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">T</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">52698</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">52979</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">W</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">52980</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">53640</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">X</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">53689</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">54480</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Y</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ((iCnChar</span><span style="color: #000000">>=</span><span style="color: #800080">54481</span><span style="color: #000000">) </span><span style="color: #000000">&&</span><span style="color: #000000"> (iCnChar</span><span style="color: #000000"><=</span><span style="color: #800080">55289</span><span style="color: #000000">)) { </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #800000">"</span><span style="color: #800000">Z</span><span style="color: #800000">"</span><span style="color: #000000">; } </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">return</span><span style="color: #000000"> (</span><span style="color: #800000">"</span><span style="color: #800000">?</span><span style="color: #800000">"</span><span style="color: #000000">); }</span></div>
试试其它关键字
汉字首字母
同语言下
.
文件IO 操作类库
.
Check图片类型[JPEG(.jpg 、.jpeg),TIF,GIF,BMP,PNG,P
.
机器名和IP取得(IPV4 IPV6)
.
Tiff转换Bitmap
.
linqHelper
.
MadieHelper.cs
.
RegHelper.cs
.
如果关闭一个窗体后激活另一个窗体的事件或方法
.
创建日志通用类
.
串口辅助开发类
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3