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#
- Maths
- Password
- Guid
- Converters
- Internet
- Crypt
- XmlHelper
- JsonHelper
- StatusInfo
PeyrSharp.Env, methods related to the file system and to the current execution environment.
- FileSys
- Logger
- System
- Update
- UwpApp
PeyrSharp.Enums, all enumerations used by PeyrSharp
- WindowsVersion
- TimeUnits
- SystemThemes
- OperatingSystems
- StorageUnits
- ControlAlignment
- PasswordPresets
- PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
- RGBInvalidValueException
- HEXInvalidValueException
- InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string
, int
, double
or arrays (T[]
).
- String
- Int
- Double
- Array (
T[]
)
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
- WinForms
- Screen
- WindowHelpers
- WindowInfo
- 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:
- ✅ Full Support
⚠️ Partial Support- ❌ Unsupported platform
PeyrSharp is available in the following frameworks
- .NET 6
- .NET 7
- .NET 8
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:
- Visual Studio 2022 with:
- .NET Desktop Development
- Git
- .NET
- .NET 6 (SDK + runtime)
- .NET 7 (SDK + runtime)
- .NET 8 (SDK + runtime)
- (optional) NuGet
![Using PeyrSharp](https://img.shields.io/badge/using-PeyrSharp-DD00FF?logo=nuget)
Project under the MIT license.