StringHelper Members
The StringHelper type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|     | Clone<(Of <<'(T>)>>) | 
   Makes a copy from the object.
   Doesn't copy the reference memory, only data.
    | 
|     | ContainsAny | 
   Determines whether the specified characters contains any.
    | 
|     | ConvertToByteArray | 
   Converts to byte array.
    | 
|     | 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 ) ) );
    | 
|     | In<(Of <<'(T>)>>) | 
   Ins the specified list.
    | 
|     | IsNull | 
   Determines whether this instance is null.
    | 
|     | IsNumeric | 
   Determines whether this instance is numeric.
    | 
|     | IsValidEmail | 
   Determines whether [is valid email address].
    | 
|     | StripHtml | 
   Strips the HTML.
   Used when we want to completely remove HTML code and not encode it with XML entities.
    | 
|     | ToException | 
   To the exception.
    | 
|     | ToSecureString | 
   Converts a string into a "SecureString"
   String password = "mypassword";
   System.Security.SecureString secure = password.ToSecureString();
    | 
|     | Truncate | 
   Truncates the string to a specified length and replace the truncated to a ...
    |