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

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

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.