Click or drag to resize

StringExtensions Methods

The StringExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAfter
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.
Public methodStatic memberAfterLast
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.
Public methodStatic memberBefore
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.
Public methodStatic memberBeforeLast
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.
Public methodStatic memberContains
Can be used to perform a case-insensitive search
Public methodStatic memberIsInvalid
Check if string is invalid - used with SetInvalid(String) />
Public methodStatic memberSetInvalid
Set string variable to InvalidString - used in ValueResolver
Top
See Also