Skip to content

Library with common `string` extension methods for easy reuse

License

Notifications You must be signed in to change notification settings

dailydevops/extensions.strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetEvolve.Extensions.Strings

This library provides a set of extension methods for System.String. It is a part of the Daily DevOps & .NET - NetEvolve 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.