2008-04-11 正式版 Microsoft Visual Studio International Pack 1.0 处理汉字、拼音、笔画转换

2008年04月11日正式版
Microsoft Visual Studio International Pack 1.0 发布
快速描述
Visual Studio International Pack 包含一组类库,该类库扩展了.NET Framework对全球化软件开发的支持。使用该类库提供的类,.NET 开发人员可以更方便的创建支持多文化多语言的软件应用。


http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=f9cfc884-1f00-45fa-b2fb-303d9e110bc7

/*
    微软刚刚推出
    Microsoft Visual Studio International Pack 1.0 Beta1
    支持 汉字 拼音 笔画 转换
    
http://www.microsoft.com/downloads/details.aspx?FamilyID=e432aeaa-7b6f-4b0d-968b-b6aafda05e34&DisplayLang=en
    我已经提取了 dll assembly
        ChnCharInfo.dll
        ChnCharInfoResource.dll
    下载分享
    
http://files.cnblogs.com/Microshaoft/vsipk1beta.zip
*/


// 命令行编译:
// csc.exe noname1.cs /r:ChnCharInfo.dll

namespace  Microshaoft
{
    
using System;
    
using System.Collections.Generic;
    
using System.Collections.ObjectModel;

    
using Microsoft.International.Converters.PinYinConverter;

    
public class Class1
    
{
        
static void Main(string[] args)
        
{
            
//汉字的笔画数
            int i = ChineseChar.GetStrokeNumber('');
            Console.WriteLine(i);
            
            
//汉字的所有拼音拼写
            ChineseChar x = new ChineseChar('');
            ReadOnlyCollection
<string> roc = x.Pinyins;
            
foreach(string s in roc)
            
{
                Console.WriteLine(s);
            }


            
//拼音拼写的所有汉字
            Char[] chars = ChineseChar.GetChars("YUE4");
            
foreach(Char c in chars)
            
{
                Console.WriteLine(c);
            }


            
//笔画数的所有汉字
            chars = ChineseChar.GetChars(20);
            
foreach(Char c in chars)
            
{
                Console.WriteLine(c);
            }

            Console.WriteLine(Environment.Version.ToString());
        }

    }


}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值