Supports conversion of Chinese characters, Pinyin strokes, Microsoft Visual Studio International Pack 1.0 Beta1

Source: Internet
Author: User
/**//*
Microsoft has just launched
Microsoft Visual Studio International Pack 1.0 Beta1
Supports conversion of Chinese characters and Pinyin strokes
Http://www.microsoft.com/downloads/details.aspx? FamilyID = e432aeaa-7b6f-4b0d-968b-b6aafda05e34 & DisplayLang = en
I have extracted dll assembly
ChnCharInfo. dll
ChnCharInfoResource. dll
Download and share
Http://files.cnblogs.com/Microshaoft/vsipk1beta.zip
*/

// Command line compilation:
// 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)
{
// Number of strokes for Chinese Characters
Int I = ChineseChar. GetStrokeNumber ('hour ');
Console. WriteLine (I );

// All pinyin spelling of Chinese Characters
ChineseChar x = new ChineseChar (' ');
ReadOnlyCollection <string> roc = x. Pinyins;
Foreach (string s in roc)
{
Console. WriteLine (s );
}

// All Chinese Characters in pinyin spelling
Char [] chars = ChineseChar. GetChars ("YUE4 ");
Foreach (Char c in chars)
{
Console. WriteLine (c );
}

// All Chinese characters in the number of strokes
Chars = ChineseChar. GetChars (20 );
Foreach (Char c in chars)
{
Console. WriteLine (c );
}
Console. WriteLine (Environment. Version. ToString ());
}
}

}
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.