https://github.com/dimesoftware/utilities
🧰 The missing utilities for .NET's base assemblies.
https://github.com/dimesoftware/utilities
csharp dotnet utilities-library
Last synced: about 1 month ago
JSON representation
🧰 The missing utilities for .NET's base assemblies.
- Host: GitHub
- URL: https://github.com/dimesoftware/utilities
- Owner: dimesoftware
- License: mit
- Created: 2020-04-29T10:16:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-13T08:33:58.000Z (7 months ago)
- Last Synced: 2026-05-01T10:06:11.699Z (about 1 month ago)
- Topics: csharp, dotnet, utilities-library
- Language: C#
- Homepage:
- Size: 546 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

Utilities
## Introduction
All-purpose utilities for commonly used assemblies.
## Getting started
- You must have Visual Studio 2019 Community or higher.
- The dotnet cli is also highly recommended.
## About this project
This project contains heaps of extension methods for common types such as `int` and `string`.
## Build and Test
- Run dotnet restore
- Run dotnet build
- Run dotnet test
## Installation
Use the package manager NuGet to install Dime.Utilities:
`dotnet add package Dime.Utilities`
## Usage
```csharp
using System;
public void Main(params string[] args)
{
string truncatedString = "Hello world".Truncate(7); // Returns "Hello w";
List someList = new List { 1,2,3,4,5 };
someList.AddIf(10, x => x > 0); // Adds to the list
someList.AddIf(-10, x => x > 0); // Doesn't add to the list
}
```
## Contributing

Pull requests are welcome. Please check out the contribution and code of conduct guidelines.
## License
[](http://badges.mit-license.org)