Skip to content

🧰 The missing utilities for .NET's base assemblies.

License

Notifications You must be signed in to change notification settings

dimesoftware/utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

All-purpose 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

using System;

public void Main(params string[] args)
{
    string truncatedString = "Hello world".Truncate(7); // Returns "Hello w";

    List<int> someList = new List<int> { 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

PRs Welcome

Pull requests are welcome. Please check out the contribution and code of conduct guidelines.

License

License

About

🧰 The missing utilities for .NET's base assemblies.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages