YanthraLabs.Util 2.1.0

dotnet add package YanthraLabs.Util --version 2.1.0
                    
NuGet\Install-Package YanthraLabs.Util -Version 2.1.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="YanthraLabs.Util" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YanthraLabs.Util" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="YanthraLabs.Util" />
                    
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 YanthraLabs.Util --version 2.1.0
                    
#r "nuget: YanthraLabs.Util, 2.1.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 YanthraLabs.Util@2.1.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=YanthraLabs.Util&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=YanthraLabs.Util&version=2.1.0
                    
Install as a Cake Tool
# Yanthralabs.Util

A collection of helpful utility classes and methods designed to streamline your .NET development.

## Getting Started

These instructions will help you get a copy of this project up and running on your local machine for development and usage.

### Prerequisites

- [.NET 5.0 or later](https://dotnet.microsoft.com/download) (or whichever version you are targeting)
- [Visual Studio 2019/2022](https://visualstudio.microsoft.com/downloads/) or any other C#-compatible IDE
- NuGet Package Manager (integrated in Visual Studio, or the [NuGet CLI](https://www.nuget.org/downloads))

## Installation

You can install the package directly from the NuGet Package Manager Console:

```powershell
PM> Install-Package Yanthralabs.Util

Alternatively, you can search for Yanthralabs.Util in the NuGet Package Manager GUI in Visual Studio, or add it to your .csproj file:

<PackageReference Include="Yanthralabs.Util" Version="x.x.x" />

Replace x.x.x with the latest available version.

Usage

After installing the NuGet package, you can include the utilities in your project files by adding the appropriate using statement. For example:

using Yanthralabs.Util;

namespace MyApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            // Example of using a utility method or class:
            var result = UtilityClass.SampleMethod("Hello World");
            Console.WriteLine(result);
        }
    }
}

Below is a brief explanation of some of the main functionalities provided by Yanthralabs.Util:

  1. UtilityClass

    • SampleMethod(string message): Brief description of what this method does.
    • AnotherMethod(int number): Brief description of what this method does.
  2. Extension Methods

    • MyExtensions.IsValidEmail(string email): Brief description of what this method does.
    • Add more extension methods as needed.

Note: Replace the classes and methods above with the actual names of the classes and methods from the package.

Examples

Below is a simple example showing how you might use multiple utilities:

using Yanthralabs.Util;
using System;

namespace MyApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            // Example: Validate a string as an email
            string testEmail = "john.doe@example.com";
            bool isValid = testEmail.IsValidEmail();

            Console.WriteLine($"Is '{testEmail}' a valid email? {isValid}");

            // Another example: Using a utility class method
            var processedData = UtilityClass.ProcessData(42);
            Console.WriteLine($"Processed Data: {processedData}");
        }
    }
}

Contributing

If you would like to contribute to Yanthralabs.Util, please follow these steps:

  1. Fork this repository.
  2. Create your feature branch: git checkout -b feature/AmazingFeature.
  3. Commit your changes: git commit -m 'Add some AmazingFeature'.
  4. Push to the branch: git push origin feature/AmazingFeature.
  5. Create a new Pull Request.

Versioning

We use Semantic Versioning for versioning. For the available versions, see the tags on this repository.

License

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


If you have any questions or run into any issues, feel free to open an issue on the GitHub repository or reach out to us directly. Happy coding!

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 was computed.  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.
  • net9.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
2.1.0 176 2/17/2025
2.0.0 149 2/17/2025
1.0.0 169 2/17/2025