Purlin.Community.Toolkit.Common
2.0.3
Prefix Reserved
See the version list below for details.
dotnet add package Purlin.Community.Toolkit.Common --version 2.0.3
NuGet\Install-Package Purlin.Community.Toolkit.Common -Version 2.0.3
<PackageReference Include="Purlin.Community.Toolkit.Common" Version="2.0.3" />
paket add Purlin.Community.Toolkit.Common --version 2.0.3
#r "nuget: Purlin.Community.Toolkit.Common, 2.0.3"
// Install Purlin.Community.Toolkit.Common as a Cake Addin #addin nuget:?package=Purlin.Community.Toolkit.Common&version=2.0.3 // Install Purlin.Community.Toolkit.Common as a Cake Tool #tool nuget:?package=Purlin.Community.Toolkit.Common&version=2.0.3
Purlin.Community.Toolkit.Common
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 | Versions 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. |
-
- Microsoft.Data.SqlClient (>= 5.1.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 7.0.0)
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 | 392 | 3/1/2024 |
2.0.18 | 145 | 2/27/2024 |
2.0.17 | 120 | 2/27/2024 |
2.0.16 | 111 | 2/27/2024 |
2.0.15 | 258 | 11/27/2023 |
2.0.14 | 113 | 11/27/2023 |
2.0.12 | 633 | 10/24/2023 |
2.0.10 | 185 | 10/5/2023 |
2.0.8 | 165 | 9/15/2023 |
2.0.5 | 168 | 9/11/2023 |
2.0.3 | 156 | 9/6/2023 |
2.0.2 | 174 | 8/29/2023 |
2.0.1 | 147 | 8/24/2023 |
1.1.1 | 356 | 8/18/2023 |
1.0.110 | 147 | 8/23/2023 |
1.0.103 | 165 | 8/22/2023 |
1.0.74 | 177 | 8/21/2023 |
1.0.73 | 170 | 8/21/2023 |
1.0.72 | 183 | 8/21/2023 |
1.0.68 | 331 | 8/18/2023 |
1.0.67 | 291 | 8/18/2023 |
1.0.66 | 175 | 8/17/2023 |
1.0.64 | 315 | 8/17/2023 |
1.0.63 | 362 | 8/17/2023 |
1.0.60 | 358 | 8/17/2023 |
1.0.51 | 289 | 8/17/2023 |
1.0.50 | 350 | 8/17/2023 |
1.0.49 | 382 | 8/17/2023 |
1.0.45 | 372 | 8/17/2023 |
1.0.44 | 359 | 8/17/2023 |
1.0.43 | 310 | 8/17/2023 |
1.0.36 | 272 | 8/16/2023 |
1.0.27 | 358 | 8/16/2023 |
1.0.20 | 310 | 8/16/2023 |
1.0.18 | 377 | 8/16/2023 |
1.0.17 | 376 | 8/16/2023 |
1.0.12-beta | 321 | 8/16/2023 |
1.0.0 | 209 | 8/7/2023 |
Finalize the first version.