StringExtensions Methods |
The StringExtensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | After |
Returns the last part of the string until the first occurence of a pattern.
If the pattern is not found then an empty string is returned.
|
![]() ![]() | AfterLast |
Returns the last part of the string until the last occurence of a pattern.
If the pattern is not found then the whole string is returned.
|
![]() ![]() | Before |
Returns the first part of the string until the first occurence of a pattern.
If the pattern is not found then the whole string is returned.
|
![]() ![]() | BeforeLast |
Returns the first part of the string until the last occurence of a pattern.
If the pattern is not found then an empty string is returned.
|
![]() ![]() | Contains |
Can be used to perform a case-insensitive search
|
![]() ![]() | IsInvalid |
Check if string is invalid - used with SetInvalid(String) />
|
![]() ![]() | SetInvalid |
Set string variable to InvalidString - used in ValueResolver
|