Click or drag to resize

StringExtensions Class

Contains extension methods for the String type.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelStringExtensions

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public static class StringExtensions

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
Fields
  NameDescription
Public fieldStatic memberInvalidString
The invalid string constant.
Top
See Also