Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rickstrahl/westwind.utilities

A general purpose utility and helper library for .NET development
https://github.com/rickstrahl/westwind.utilities

csharp dotnet dotnet-core utilities westwind

Last synced: 3 days ago
JSON representation

A general purpose utility and helper library for .NET development

Awesome Lists containing this project

README

        

# Westwind.Utilities

![](Westwind.Utilities/icon.png)

| Library | Versions and Stats |
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Westwind.Utilities | ![](https://img.shields.io/nuget/v/Westwind.Utilities.svg) ![](https://img.shields.io/nuget/dt/Westwind.Utilities.svg) |
| Westwind.Utilities.Data | ![](https://img.shields.io/nuget/v/Westwind.Utilities.Data.svg) ![](https://img.shields.io/nuget/dt/Westwind.Utilities.Data.svg) |
| Westwind.Utilities.Windows | ![](https://img.shields.io/nuget/v/Westwind.Utilities.Windows.svg) ![](https://img.shields.io/nuget/dt/Westwind.Utilities.Windows.svg) |
| Documentation | ![](https://img.shields.io/badge/documentation-blue.svg) |

### A general purpose utility and helper library for .NET development

Supports the following Targets:

* .NET 9.0,8.0
* .NET Standard 2.0
* .NET 4.62+

### Installation
You can install the package [from NuGet](http://nuget.org/packages/Westwind.Utilities/) using the Visual Studio Package Manager or NuGet UI:

```
PM> install-package westwind.utilities
```

As of version 4.0 the `Data` related features are located in a separate NuGet Package:

```
PM> install-package westwind.utilities.data
```
> #### Upgrading from v3 and using Data Access Features?
> If you're switching from v3 or earlier and are using the Data Access features of the library, this is a breaking change that requires you to add the new `westwind.utilities.data` package.

### What is it?
Every .NET application requires small, common and often repeated tasks. This library is a collection of those things that I commonly need on a regular basis and have compiled over the years.

* [Get it on NuGet](https://nuget.org/packages/Westwind.Utilities/)
* [Usage Documentation](https://docs.west-wind.com/westwind.utilities/_5am0u0jou.htm)
* [Class Documentation](https://docs.west-wind.com/westwind.utilities/_5am0u09dd.htm)

It includes tools for:

* [**Application Configuration**](https://docs.west-wind.com/westwind.utilities?page=_2le027umn.htm)
class to create code-first strongly typed configuration classes for your applications

* [**Lightweight ADO.NET Data Access Layer**](https://docs.west-wind.com/westwind.utilities?=page=_3ou0v2jum.htm)
ideal for components or apps that need data access but don't need the bulk of Entity Framework or similar ORM.
*requires adding the `westwind.utilities.data` package.*

* **General Purpose Utility Classes**:
* [StringUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20StringUtils)
* [HtmlUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20HtmlUtils)
* [ReflectionUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20ReflectionUtils)
* [SerializationUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20SerializationUtils)
* [DataUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20DataUtils)
* [FileUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20FileUtils)
* [TimeUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20TimeUtils)
* [XmlUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20TimeUtils)
* [StringSerializer](https://docs.west-wind.com/westwind.utilities?topic=Class%20StringSerializer)
* [Expando](https://docs.west-wind.com/westwind.utilities?topic=Class%20Expando)
* [PropertyBag](https://docs.west-wind.com/westwind.utilities?topic=Class%20PropertyBag)
* [Scheduler](https://docs.west-wind.com/westwind.utilities?topic=Class%20Scheduler) (for background processing)
* [Encryption](https://docs.west-wind.com/westwind.utilities?topic=Class%20Encryption)
* [HttpClient](https://docs.west-wind.com/westwind.utilities?topic=Class%20HttpClient) (HttpWebRequest wrapper)
* [HttpUtils](https://docs.west-wind.com/westwind.utilities?topic=Class%20HttpUtils) (Simple REST client helpers)
* [SmptClientNative](https://docs.west-wind.com/westwind.utilities?topic=Class%20SmtpClientNative) (SmtpClient Wrapper)

* [DelegateFactory](https://docs.west-wind.com/westwind.utilities?topic=Class%20DelegateFactory)

and much, much more.

It's worthwhile to browse through the source code or the documentation
to find out the myriad of useful functionality that is available, all
in a small single assembly.

This assembly is the base for most other West Wind libraries.

## License
This library is published under **MIT license** terms.

**Copyright © 2012-2023 Rick Strahl, West Wind Technologies**

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.