EQP.UtilityCore
1.0.0
dotnet add package EQP.UtilityCore --version 1.0.0
NuGet\Install-Package EQP.UtilityCore -Version 1.0.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="EQP.UtilityCore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EQP.UtilityCore --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EQP.UtilityCore, 1.0.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.
// Install EQP.UtilityCore as a Cake Addin #addin nuget:?package=EQP.UtilityCore&version=1.0.0 // Install EQP.UtilityCore as a Cake Tool #tool nuget:?package=EQP.UtilityCore&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EQP.UtilityCore
Pacchetto .net standard che espone diverse funzioni di utilità.
Classi di helper esposte
FiscalCodeHelper
Classe che espone le funzioni statiche per il controllo semantico sul codice fiscale. Espone le seguenti funzioni statiche:
- CheckFiscalCode: effettua la verifica semantica sul codice fiscale passato come parametro, in accordo alla lingua richiesta per la validazione. La firma di tale funzione è la seguente
CheckFiscalCode(string fiscalCode, FiscalCodeCultureEnum culture = FiscalCodeCultureEnum.ITALIAN)
dove il parametrofiscalCode
deve contenere il codice fiscale da validare mentre il parametroculture
deve riportare il valore della lingua da usare per la validazione del codice fiscale (il valore di default è ITALIAN).
Attenzione! Al momento questo metodo prevede il controllo semantico per la sola lingua italiana
ClassTypeHelper
Classe che espone diverse funzioni statiche di controllo dei type che permettono di sapere se un type generico è associabile a un tipo primitivo di C#. Espone le seguenti funzioni statiche:
- bool IsEnum(Type type):: Dato un type restituisce TRUE se si tratta di un enumeratore (anche nullable)
- bool IsEnum(Type t, out Type Enumtype): Dato un type restituisce TRUE se si tratta di un enumeratore (anche nullable), inoltre nel parametro di output restituisce il type dell'enum (utile nel caso di enumeratori nullable)
- bool IsDateTime(Type t): Restituisce TRUE se il type passato è DateTime o DateTime? altrimenti restituisce FALSE
- bool IsBoolean(Type t): Restituisce TRUE se il type passato è bool o bool? altrimenti restituisce FALSE
- bool IsDecimal(PropertyInfo pi, string inputvalue, out decimal? outvalue): Esegue il check con tipo decimal per la stringa passata come parametro e ne restituisce il valore opportunamente castato
- bool IsDouble(PropertyInfo pi, string inputvalue, out double? outvalue): Esegue il check con tipo double per la stringa passata come parametro e ne restituisce il valore opportunamente castato
- bool IsFloat(PropertyInfo pi, string inputvalue, out float? outvalue): Esegue il check con tipo float per la stringa passata come parametro e ne restituisce il valore opportunamente castato
- bool IsInteger(PropertyInfo pi, string inputvalue, out int? outvalue): Esegue il check con tipo int per la stringa passata come parametro e ne restituisce il valore opportunamente castato
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
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 |
---|---|---|
1.0.0 | 703 | 11/19/2021 |