https://github.com/mx-pl/extendedtypes_csharp
A small C#/.NET library providing extension methods for boolean and string data types.
https://github.com/mx-pl/extendedtypes_csharp
csharp dotnet library nuget-package
Last synced: 4 months ago
JSON representation
A small C#/.NET library providing extension methods for boolean and string data types.
- Host: GitHub
- URL: https://github.com/mx-pl/extendedtypes_csharp
- Owner: mx-pl
- License: mit
- Created: 2023-12-09T17:15:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T14:48:45.000Z (almost 2 years ago)
- Last Synced: 2024-12-04T03:36:00.053Z (over 1 year ago)
- Topics: csharp, dotnet, library, nuget-package
- Language: C#
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[changelog-url]: https://github.com/mx-pl/ExtendedTypes_CSharp/blob/main/CHANGELOG.md
[gitbook-url]: https://mx-pl.gitbook.io/ExtendedTypes-Docs
[github-issues-url]: https://github.com/mx-pl/ExtendedTypes_CSharp/issues
[github-discussions-url]: https://github.com/mx-pl/ExtendedTypes_CSharp/discussions
[license-url]: https://github.com/mx-pl/ExtendedTypes_CSharp/blob/main/LICENSE
[nuget-url]: https://www.nuget.org/packages/mx-pl.ExtendedTypes
Extended Types (Library)
A small C#/.NET library providing extension methods for boolean and string data types.
Table Of Contents
The motivation for this library is two-fold:
#### Side-stepping the negation operator
Though the negation operator (`!`) is concise, it is also easy to miss and sometimes has to be put in places where it obstructs or does not align with the natural reading flow.
This library aims to provide extension methods which improve the readability and straightforwardness of such statements—and in some cases there conciseness, too.
#### More concise string manipulation
The C# string class comes pre-equipped with a variety of useful methods. However, invoking some of them requires rather roundabout statements (e.g. checking whether a string is empty).
This library provides some extension methods to simplify their usage.
Published under the `MIT License`. See the full [license file][license-url] for more information.
This library is published as a [package on NuGet][nuget-url].
* Current release: `1.2.0` *(2024-02-06)*
Information on what is new and on previous releases can be found in the [CHANGELOG][changelog-url]. An overview of all features currently included can be found [here][github-wiki-url].
This library provides extension methods for:
* Boolean
* Straightforward toggling.
* String
* Concise null-or-empty checks.
* Quick whitespace removal.
* Easy shortening of sequences of identical chars.
Please see the [Docs][gitbook-url] for a detailed feature overview.
*Please note:* I am a hobby programmer, and the premise of this library or the way it is implemented might not make sense from a more professional point of view. Additionally, I cannot guarantee it is behaving as intended, and am not actively maintaining it.
That being said, I would appreciate your feedback. If you have any suggestions, corrections or ideas, you can leave a post in the [Discussions][github-discussions-url] or open an [Issue][github-issues-url].