Skip to content

MatrTech/Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matr.Utilitis

This is a general usage package with ulitities to make setting up your code more easy. It provides some different kinds of utilities all focused on removing the boilerplate code needed to manage code projects.For starters it provides a lightweight dependency factory to manage all the dependencies. Making it easily and safe to register and replace dependencies.

Installing

The package is easily installed using nuget.

Install-Package MatrTech.Utilities

Using the package

using namespace Matr.Utilities;

That's it, now you can use the package.

Package in action

When you have the following class with a dependency

public class Service
{
    public Service(IDependency dependency)
    {
        this.dependency = dependency;
    }
}

This could be created using the GenericFactory

GenericFactory factory = new GenericFactory();
factory.RegisterOrReplace<IDependency, Dependency>();

...

var service = factory.Create<Service>();

About

Package of general utilities to help setup your code more easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages