Pargoon.Utility 1.1.5

dotnet add package Pargoon.Utility --version 1.1.5                
NuGet\Install-Package Pargoon.Utility -Version 1.1.5                
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="Pargoon.Utility" Version="1.1.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pargoon.Utility --version 1.1.5                
#r "nuget: Pargoon.Utility, 1.1.5"                
#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 Pargoon.Utility as a Cake Addin
#addin nuget:?package=Pargoon.Utility&version=1.1.5

// Install Pargoon.Utility as a Cake Tool
#tool nuget:?package=Pargoon.Utility&version=1.1.5                

Pargoon.Utility

Overview

Pargoon.utility is a collection of utility libraries aimed at simplifying common programming tasks. The utilities cover a wide range of functions including string manipulation, array handling, regular expressions, and random number generation.

Pargoon.Utility

The Pargoon.Utility package provides various utility functions for working with regular expressions, strings, arrays, and random numbers. It is designed to be simple and effective for everyday programming needs.

Installation

You can install the package via NuGet using the following command:

dotnet add package Pargoon.Utility --version 1.1.5

Or update your project file with:

<PackageReference Include="Pargoon.Utility" Version="1.1.5" />

Classes and Methods

RegXPattern

This class contains useful regular expression patterns for common validation and matching tasks.

StringUtility

Provides extension methods for string manipulation, such as trimming, padding, and converting cases.

ArrayUtility

Includes extension methods for working with arrays, such as merging arrays into strings.

RandomUtils

Offers functions to generate random numbers and strings, useful for testing and simulations.

Encryption (New)

Provides methods for encrypting and decrypting data to enhance security.

ObjectUtility (New)

Includes helper methods for working with objects, such as deep cloning and property manipulation.

TimeUtility (New)

Contains functions for working with date and time, such as formatting and converting time zones.

Usage Examples

Generating a Random String
using Pargoon.Utility;

string randomStr = RandomUtils.RandomString(10);
Console.WriteLine(randomStr);  // Outputs a random string of length 10
Merging Arrays into a String
using Pargoon.Utility;

string[] array = { "one", "two", "three" };
string result = ArrayUtility.MergeToString(array, ", ");
Console.WriteLine(result);  // Outputs: "one, two, three"
Using Regular Expression Patterns
using Pargoon.Utility;

bool isValidEmail = Regex.IsMatch("example@example.com", RegXPattern.EmailPattern);
Console.WriteLine(isValidEmail);  // Outputs: True

License

This project is licensed under the MIT License. See the LICENSE file for details.


For more information and updates, visit the Pargoon.Core GitHub repository and the NuGet package page【20†source】【21†source】.

Product 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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Pargoon.Utility:

Package Downloads
Pargoon.PersianDateUtility

Contain some useful function for working with persian date

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.5 643 8/18/2024
1.1.4 181 7/20/2024
1.1.1 203 5/31/2023
1.1.0 142 5/31/2023
1.0.9 443 9/3/2022
1.0.8 408 7/30/2022
1.0.7 408 7/30/2022
1.0.6 421 5/17/2022
1.0.5 385 5/17/2022
1.0.4 397 5/17/2022
1.0.3 1,025 5/17/2022
1.0.2 395 5/17/2022
1.0.1 397 5/17/2022
1.0.0 389 5/17/2022

convert utility added