https://github.com/dailydevops/extensions.strings
Library with common `string` extension methods for easy reuse
https://github.com/dailydevops/extensions.strings
dotnet extensions
Last synced: 12 months ago
JSON representation
Library with common `string` extension methods for easy reuse
- Host: GitHub
- URL: https://github.com/dailydevops/extensions.strings
- Owner: dailydevops
- License: mit
- Created: 2023-08-29T07:56:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T18:26:32.000Z (over 1 year ago)
- Last Synced: 2024-12-10T19:44:24.119Z (over 1 year ago)
- Topics: dotnet, extensions
- Language: C#
- Homepage: https://dailydevops.net
- Size: 295 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# NetEvolve.Extensions.Strings
This library provides a set of extension methods for `System.String`. It is a part of the [Daily DevOps & .NET - NetEvolve](https://daily-devops.net/) project, which aims to provide a set of useful libraries for .NET developers.
## Methods
### `stringVariable.EnsureEndsWith(string, comparison)`
Simple helper method to determine if the `value` ends with the `suffix`. If not, it will be appended.
### `stringVariable.EnsureStartsWith(string, comparison)`
Simple helper method to determine if the `value` ends with the `prefix`. If not, this is prefixed.