Purlin.Community.Toolkit.Common 2.0.21

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package Purlin.Community.Toolkit.Common --version 2.0.21
NuGet\Install-Package Purlin.Community.Toolkit.Common -Version 2.0.21
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="Purlin.Community.Toolkit.Common" Version="2.0.21" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Purlin.Community.Toolkit.Common --version 2.0.21
#r "nuget: Purlin.Community.Toolkit.Common, 2.0.21"
#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 Purlin.Community.Toolkit.Common as a Cake Addin
#addin nuget:?package=Purlin.Community.Toolkit.Common&version=2.0.21

// Install Purlin.Community.Toolkit.Common as a Cake Tool
#tool nuget:?package=Purlin.Community.Toolkit.Common&version=2.0.21

Purlin.Community.Toolkit.Common

NuGet Version NuGet Downloads

Overview

Purlin.Community.Toolkit.Common is a C# library that provides a collection of useful helper methods, extensions, and other utilities to simplify common programming tasks. This toolkit aims to streamline the development process by offering reusable code snippets that can enhance productivity and maintain code consistency.

Features

  • Helper Methods: Purlin.Community.Toolkit.Common includes a wide range of helper methods for various purposes, such as string manipulation, date/time handling, mathematical operations, and more. These methods are designed to be intuitive and efficient, saving you time and effort in your projects.

  • Extensions: The toolkit comes with extension methods that enhance the functionality of existing C# types and classes. These extensions allow you to perform additional operations on familiar objects without modifying their original implementation.

  • Etc: In addition to the core features, Purlin.Community.Toolkit.Common may also include other miscellaneous utilities and tools that can be useful in different scenarios.

Installation

You can easily install Purlin.Community.Toolkit.Common via NuGet Package Manager. Run the following command in the Package Manager Console:

Install-Package Purlin.Community.Toolkit.Common

Alternatively, you can use the Visual Studio NuGet Package Manager to search for and install the package.

Usage

Once installed, you can start using the toolkit in your C# projects. Simply import the necessary namespaces and access the helper methods and extensions directly.

// Example usage of extension method

using Purlin.Community.Toolkit.Common.Extensions;
using Purlin.Community.Toolkit.Common.Test.Models;

public static List<Person> Items = new()
{
    new Person { Id = 3, Name = "Alice", Age = 30 },
    new Person { Id = 1, Name = "Bob", Age = 25 },
    new Person { Id = 2, Name = "Charlie", Age = 28 }
};


public void OrderIf_ShouldReturnUnorderedCollection_WhenConditionIsFalse()
{
    // Arrange
    var mocker = new Mock<IEnumerable<Person>>();
    mocker.Setup(m => m.GetEnumerator()).Returns(Items.GetEnumerator());

    const bool condition = false;
    int KeySelector(Person item) => item.Id;

    // Act
    var result = mocker.Object.OrderIf(condition, KeySelector).ToList();

    // Assert
    Assert.Equal(3, result[0].Id);
    Assert.Equal(1, result[1].Id);
    Assert.Equal(2, result[2].Id);
}

Contributing

We welcome contributions from the community to improve and expand this toolkit. If you find any issues, have suggestions for new features, or want to contribute code, please check out our Contribution Guidelines for detailed instructions.

License

Purlin.Community.Toolkit.Common is released under the MIT License. Feel free to use this library in both commercial and non-commercial projects.

Contact

For any questions, feedback, or support, you can reach out to our team at support@purlin.com or visit our website at https://www.purlin.com.


Thank you for using Purlin.Community.Toolkit.Common! We hope this library makes your development process smoother and more enjoyable. If you have any questions or need assistance, don't hesitate to contact us. Happy coding!

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
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
2.0.21 128 3/1/2024
2.0.18 115 2/27/2024
2.0.17 94 2/27/2024
2.0.16 84 2/27/2024
2.0.15 233 11/27/2023
2.0.14 89 11/27/2023
2.0.12 507 10/24/2023
2.0.10 149 10/5/2023
2.0.8 136 9/15/2023
2.0.5 142 9/11/2023
2.0.3 129 9/6/2023
2.0.2 149 8/29/2023
2.0.1 128 8/24/2023
1.1.1 309 8/18/2023
1.0.110 124 8/23/2023
1.0.103 139 8/22/2023
1.0.74 154 8/21/2023
1.0.73 150 8/21/2023
1.0.72 158 8/21/2023
1.0.68 290 8/18/2023
1.0.67 252 8/18/2023
1.0.66 151 8/17/2023
1.0.64 278 8/17/2023
1.0.63 327 8/17/2023
1.0.60 315 8/17/2023
1.0.51 251 8/17/2023
1.0.50 311 8/17/2023
1.0.49 342 8/17/2023
1.0.45 333 8/17/2023
1.0.44 318 8/17/2023
1.0.43 274 8/17/2023
1.0.36 229 8/16/2023
1.0.27 324 8/16/2023
1.0.20 275 8/16/2023
1.0.18 335 8/16/2023
1.0.17 341 8/16/2023
1.0.12-beta 281 8/16/2023
1.0.0 177 8/7/2023

Finalize the first version.