Wednesday, March 15, 2023

Introducing kwd.CoreUtil

 I built this a while ago; others may find it handy.


It's a small library focussing primarily on syntax sugar  for C#

kwd.CoreUtil v1.1.0:  Git / Nuget

The main code is a set of extensions to make working with FileInfo and DirectoryInfo more natural.

In addition there are some other utilities for strings and file streams.


Originally the design was to restrict this to ONLY depend on standard .NET Core packages. 

But more recently I stumbled onto System.IO.Abstractions; since the package is lite, and provides significant benefit; I've take it as a dependency


 So what's it good for?

Well, my favourite is the Ensure* extensions. 
Super handy to ensure a directory exists before used.

Have a look and provide some feedback :)

No comments:

Post a Comment

A short list of C# coding issues.

Injecting services into entities It been bugging me for a while now that to use services in a entity can be a bit of pain. It usually starts...