Extensions methods of PeyrSharp.
$ dotnet add package PeyrSharp.Extensions
A C# library designed to make developers' job easier.
View documentation » · Report Bug · Request Feature
In March 2020, we published LeoCorpLibrary, which was also a C# library that contains useful methods. When we started the development of it, we didn't know where the project will go yet. Over the releases, we've added more and more methods and new features. However, the meaning and the purpose of LeoCorpLibrary was becoming less clear for everyone; it was becoming a mess. This is why we decided to rather not release v5, but instead, we decided to make a brand new .NET Library, PeyrSharp.
PeyrSharp is a C# written library designed to make developers' life easier. We've all written code that we wish we hadn't. PeyrSharp is here to respond to this need; by implementing useful methods in various domains: Mathematics, Web/HTTP requests, unit converters, extensions, environment-related operations, and more!
PeyrSharp is divided in multiple packages:
PeyrSharp, the main package, that contains all of the followings:
PeyrSharp.Core, the basic methods and features of C#
PeyrSharp.Env, methods related to the file system and to the current execution environment.
PeyrSharp.Enums, all enumerations used by PeyrSharp
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
T[])PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms.
| Package/Platform | Windows | macOS | Linux + others |
|---|---|---|---|
| Core | ✅ | ✅ | ✅ |
| Env | ✅ | ⚠️ | ⚠️ |
| Enums | ✅ | ✅ | ✅ |
| Exceptions | ✅ | ✅ | ✅ |
| Extensions | ✅ | ✅ | ✅ |
| UiHelpers | ✅ | ❌ | ❌ |
Caption:
PeyrSharp is available in the following frameworks
Note: .NET Framework, .NET Core and .NET 5 are not targeted by PeyrSharp, since they are no longer supported.
There are two branches:
| Name | Release | Description |
|---|---|---|
main | Stable versions | |
vNext | Next version of PeyrSharp (unstable) |
Note: Other branches can also - of course - exists.
Here's what you'll need to contribute to this project:

Project under the MIT license.