This article describes the method of C# calling VB for simple and traditional Chinese conversion. Share it for your reference. The specific analysis is as follows:
First, quote it in the C# project and choose the appropriate version by yourself.
Then add a reference to the project: using;
Convert:
Convert to traditional Chinese:
outputText=(txtText to be converted, );
Convert to Simplified Chinese:
outputText=(txtText to be converted, );
In addition, you can also perform full-width and half-width conversion, Hiragana and Katakana conversion, etc.:
Turn the full-width:
outputText=(txtText to be converted, );
Turn half a corner:
outputText=(txtText to be converted, );
Strings also contains some methods that C# does not have, such as Ltrim, Rtrim, etc.
I hope this article will be helpful to everyone's C# programming.