StringHelper Members

The StringHelper type exposes the following members.

Methods


  Name Description
Public method Static member Clone<(Of <<'(T>)>>)
Makes a copy from the object. Doesn't copy the reference memory, only data.
Public method Static member ContainsAny
Determines whether the specified characters contains any.
Public method Static member ConvertToByteArray
Converts to byte array.
Public method Static member IfNotNull<(Of <<'(T, TResult>)>>)
if the object this method is called on is not null, runs the given function and returns the value. if the object is null, returns default(TResult) var username = HttpContext.Current.IfNotNull( ctx => ctx.User.IfNotNull( user => user.Identity.IfNotNull( iden => iden.Name ) ) );
Public method Static member In<(Of <<'(T>)>>)
Ins the specified list.
Public method Static member IsNull
Determines whether this instance is null.
Public method Static member IsNumeric
Determines whether this instance is numeric.
Public method Static member IsValidEmail
Determines whether [is valid email address].
Public method Static member StripHtml
Strips the HTML. Used when we want to completely remove HTML code and not encode it with XML entities.
Public method Static member ToException
To the exception.
Public method Static member ToSecureString
Converts a string into a "SecureString" String password = "mypassword"; System.Security.SecureString secure = password.ToSecureString();
Public method Static member Truncate
Truncates the string to a specified length and replace the truncated to a ...