StringExt ClassString extensions.

Inheritance Hierarchy

System.Object
  UltimateXR.Extensions.System.StringExt
Namespace: UltimateXR.Extensions.System
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static class StringExt


The StringExt type exposes the following members.

Methods

NameDescription
Public methodStatic memberGetMd5 Gets the MD5 hash value of a string.
Public methodStatic memberGetMd5x2 Gets the double MD5 hash value of a string.
Public methodStatic memberGetOccurrenceCount Gets the number of occurrences of a string in another string.
Public methodStatic memberGetSha256 Gets the SHA-256 hash value of a string.
Public methodStatic memberGetSha256x2 Gets the double SHA-256 hash value of a string.
Public methodStatic memberIsSubDirectoryOf Checks if a path is a child of another path. Adapted from https://stackoverflow.com/questions/8091829/how-to-check-if-one-path-is-a-child-of-another-path
Public methodStatic memberRandomString Creates a random string.
Public methodStatic memberReplaceInvalidDirPathChars Replaces the invalid characters in a directory path with a given character.
Public methodStatic memberReplaceInvalidFilePathChars Replaces the invalid characters in a file path with a given character.
Public methodStatic memberReplaceInvalidPathChars Replaces the invalid characters in a path with a given character.
Public methodStatic memberSplitCamelCase Splits a string using CamelCase.
Public methodStatic memberThrowIfNullOrEmpty Throws an exception if the string is null or empty.
Public methodStatic memberThrowIfNullOrWhitespace Throws an exception if the string is null or only contains whitespaces.

See Also

Reference

UltimateXR.Extensions.System Namespace