CHSPinYinConv 1.0.0

.NET Standard 2.0
Install-Package CHSPinYinConv -Version 1.0.0
dotnet add package CHSPinYinConv --version 1.0.0
<PackageReference Include="CHSPinYinConv" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CHSPinYinConv --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CHSPinYinConv, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CHSPinYinConv as a Cake Addin
#addin nuget:?package=CHSPinYinConv&version=1.0.0

// Install CHSPinYinConv as a Cake Tool
#tool nuget:?package=CHSPinYinConv&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


The following code demonstrates the returning stroke number of a given character in user scenario.

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.International.Converters.PinYinConverter;

namespace Example_CS
    class Program
        static void Main(string[] args)
            ChineseChar chineseChar = new ChineseChar('微');
            Console.WriteLine("Stroke number of 微 in Chinese is {0}.", chineseChar.StrokeNumber);
            Console.WriteLine("{0} characters' pinyin is \"wei1\".", ChineseChar.GetHomophoneCount("wei1"));
            if(ChineseChar.IsHomophone('微', '薇'))
                Console.WriteLine("微 and 薇 have the same pinyin.");
                Console.WriteLine("微 and 薇 have different pinyins.");

// This code produces the following output:
// Stroke number of 微 in Chinese is 13.
// 37 characters' pinyin is "wei1".
// 微 and 薇 have the same pinyin.
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on CHSPinYinConv:

Package Downloads



Controls Extensions for Avalonia.Avalonia is a WPF/UWP-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows (.NET Framework, .NET Core), Linux (via Xorg), MacOS and with experimental support for Android and iOS.


Package Description


Lightweight and efficient keyword search utility.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 47,467 12/21/2017