DLL file download: chineseconverter.rar
1. Add referenceChineseconverter. dll
2. Introduce the namespace
Using Microsoft. International. converters. traditionalchinesetosimplifiedconverter;
3. Convert simplified to traditional
/// <Summary>
/// Convert simplified to traditional
/// </Summary>
/// <Param name = "text"> Convert text </Param>
/// <Returns> Traditional Chinese Text </Returns>
Public Static String Simplifiedtotraditional ( String Text)
{
Return Chineseconverter. Convert (text, chineseconversiondirection. simplifiedtotraditional );
}
4. convert traditional Chinese to simplified Chinese
/// <Summary>
/// Convert traditional to simplified
/// </Summary>
/// <Param name = "text"> Convert text </Param>
/// <Returns> Simplified text </Returns>
Public Static String Traditionaltosimplified ( String Text)
{
Return Chineseconverter. Convert (text, chineseconversiondirection. traditionaltosimplified );
}