YamatoDaiwa.CSharpExtensions.Localizations.Japanese 0.9.0

dotnet add package YamatoDaiwa.CSharpExtensions.Localizations.Japanese --version 0.9.0
                    
NuGet\Install-Package YamatoDaiwa.CSharpExtensions.Localizations.Japanese -Version 0.9.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YamatoDaiwa.CSharpExtensions.Localizations.Japanese" Version="0.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YamatoDaiwa.CSharpExtensions.Localizations.Japanese" Version="0.9.0" />
                    
Directory.Packages.props
<PackageReference Include="YamatoDaiwa.CSharpExtensions.Localizations.Japanese" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add YamatoDaiwa.CSharpExtensions.Localizations.Japanese --version 0.9.0
                    
#r "nuget: YamatoDaiwa.CSharpExtensions.Localizations.Japanese, 0.9.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package YamatoDaiwa.CSharpExtensions.Localizations.Japanese@0.9.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=YamatoDaiwa.CSharpExtensions.Localizations.Japanese&version=0.9.0
                    
Install as a Cake Addin
#tool nuget:?package=YamatoDaiwa.CSharpExtensions.Localizations.Japanese&version=0.9.0
                    
Install as a Cake Tool

「Yamato Daiwa CS(harp) extensions」ライブラリの日本語化・日本関連機能

機能

JapanesePhoneNumberクラス

日本電話番号関連処理のに使われる。 完全に静的クラスである。

メソッド
Format
string Format(string phoneNumber)

単一の引数で渡され、日本の電話番号に該当している数字と任意なハイフンから成り立っていると期待されている文字列をフォーマットする。 内容はは、正しくない位置からハイフンを取り除き、正しい位置にハイフンを入れる事。

IsValid
bool IsValid(string potentialJapanesePhoneNumber)

単一の引数で渡され、数字と任意なハイフンから成り立っていると期待されている文字列が日本の電話番号に該当しているか、確認する。 該当している場合trueを返し、さもなくばfalseを返す。

定数
DIGITS_COUNT_IN_TWO_LAST_PORTIONS_DIVIDED_BY_NDASH
Key Value
型 byte
値 4
読み込み専用静的フィルド
VALID_PATTERN__WITHOUT_DASHES
Key Value
型 Regex
値 ^\d{10,11}$

日本語化

データモキング

MockGatewayHelperJapaneseLocalization

MockGatewayHelperクラス専用日本語化。

MockGatewayHelper.Localization = new MockGatewayHelperJapaneseLocalization();
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.9.0 132 2/11/2026
0.8.0 127 1/16/2026
0.7.0 132 1/15/2026
0.6.0 130 1/1/2026
0.5.0 124 1/1/2026
0.4.0 128 1/1/2026