Purlin.Community.Toolkit.Common
1.0.73
Prefix Reserved
See the version list below for details.
dotnet add package Purlin.Community.Toolkit.Common --version 1.0.73
NuGet\Install-Package Purlin.Community.Toolkit.Common -Version 1.0.73
<PackageReference Include="Purlin.Community.Toolkit.Common" Version="1.0.73" />
paket add Purlin.Community.Toolkit.Common --version 1.0.73
#r "nuget: Purlin.Community.Toolkit.Common, 1.0.73"
// Install Purlin.Community.Toolkit.Common as a Cake Addin #addin nuget:?package=Purlin.Community.Toolkit.Common&version=1.0.73 // Install Purlin.Community.Toolkit.Common as a Cake Tool #tool nuget:?package=Purlin.Community.Toolkit.Common&version=1.0.73
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 | 388 | 3/1/2024 |
2.0.18 | 143 | 2/27/2024 |
2.0.17 | 118 | 2/27/2024 |
2.0.16 | 109 | 2/27/2024 |
2.0.15 | 256 | 11/27/2023 |
2.0.14 | 111 | 11/27/2023 |
2.0.12 | 631 | 10/24/2023 |
2.0.10 | 183 | 10/5/2023 |
2.0.8 | 163 | 9/15/2023 |
2.0.5 | 166 | 9/11/2023 |
2.0.3 | 154 | 9/6/2023 |
2.0.2 | 170 | 8/29/2023 |
2.0.1 | 145 | 8/24/2023 |
1.1.1 | 354 | 8/18/2023 |
1.0.110 | 145 | 8/23/2023 |
1.0.103 | 164 | 8/22/2023 |
1.0.74 | 175 | 8/21/2023 |
1.0.73 | 169 | 8/21/2023 |
1.0.72 | 181 | 8/21/2023 |
1.0.68 | 329 | 8/18/2023 |
1.0.67 | 289 | 8/18/2023 |
1.0.66 | 173 | 8/17/2023 |
1.0.64 | 313 | 8/17/2023 |
1.0.63 | 361 | 8/17/2023 |
1.0.60 | 356 | 8/17/2023 |
1.0.51 | 287 | 8/17/2023 |
1.0.50 | 348 | 8/17/2023 |
1.0.49 | 380 | 8/17/2023 |
1.0.45 | 370 | 8/17/2023 |
1.0.44 | 357 | 8/17/2023 |
1.0.43 | 308 | 8/17/2023 |
1.0.36 | 270 | 8/16/2023 |
1.0.27 | 356 | 8/16/2023 |
1.0.20 | 308 | 8/16/2023 |
1.0.18 | 375 | 8/16/2023 |
1.0.17 | 374 | 8/16/2023 |
1.0.12-beta | 319 | 8/16/2023 |
1.0.0 | 207 | 8/7/2023 |
Finalize the first version.