[.netcore] 繁簡轉換

Net Framework下, 繁簡轉換可以用Microsoft.VisualBasic實現.

Strings.StrConv(input, VbStrConv.SimplifiedChinese);
Strings.StrConv(input, VbStrConv.TraditionalChinese);
 

.Net core 要使用另一個套件 , 

Install-Package CHTCHSConv -Version 1.0.0
ChineseConverter.Convert(input, ChineseConversionDirection.TraditionalToSimplified); 
ChineseConverter.Convert(input, ChineseConversionDirection.SimplifiedToTraditional);