Skip to content

dimesoftware/system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Extensions to the .NET System namespace

Build Status CodeQL Code coverage

Introduction

This project is meant to extend the capabilities of the System namespace with extra utility functions.

About this project

The most notable types in this assembly include:

  • Ensure: a handy and lightweight validation class.
  • TryParse: try parsing string to integers

Getting Started

  • You must have Visual Studio 2019 Community or higher.
  • The dotnet cli is also highly recommended.

Build and Test

  • Run dotnet restore
  • Run dotnet build
  • Run dotnet test

Installation

Use the package manager NuGet to install Dime.System:

dotnet add package Dime.System

Usage

using System;

public void MyMethod(MyClass myClassParameter)
{
    Ensure.Argument.NotNull(myClassParameter, nameof(myClassParameter), "Parameter cannot be null");
}

Contributing

PRs Welcome

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

License

License