![]() | Extensions Class |
Namespace: Cauldron
The Extensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AppendTSource |
Concatenates an item into a sequences.
|
![]() ![]() | ConcatT(T, T) |
Concats an item to an array creating a new array containing the original array and the item.
|
![]() ![]() | ConcatT(T, T) |
Concatenates two arrays together creating a new array containing both arrays
|
![]() ![]() | Contains |
Returns a value indicating whether a specified substring occurs within this string.
|
![]() ![]() | Copy(String) |
Creates a new instance of System.String with the same value as a specified System.String.
|
![]() ![]() | CopyT(T) |
Copies an array.
|
![]() ![]() | DistinctTSource |
Returns distinct elements from a sequence by using a selector to compare values.
|
![]() ![]() | EnclosedIn |
Gets the string enclosed by two strings
|
![]() ![]() | FlattenT |
Flattens a jagged array to a one-dimensional array
|
![]() ![]() | ForeachT |
Performs the specified action on each element of the IEnumerableT |
![]() ![]() | GetBytes(Byte, UInt32) |
Gets a specified length of bytes.
If the specified length length is longer than the source array the
source array will be returned instead.
|
![]() ![]() | GetBytes(Byte, Int32, Int32) |
Gets a specified length of bytes
|
![]() ![]() | GetLines |
Splits a string into lines
|
![]() ![]() | GetTargetT |
Retrieves the target object referenced by the current WeakReferenceT object
Returns null if the target is not available
|
![]() ![]() | GetTypes |
Retrieves the types of the object array
|
![]() ![]() | IndexOf(Byte, Byte) |
Searches for the specified byte array and returns the zero-based index of the first
occurrence within the entire Array |
![]() ![]() | IndexOfT(T, T) |
Searches for the specified object and returns the zero-based index of the first
occurrence within the entire Array |
![]() ![]() | InterleaveT |
Interleve combine two collections.
|
![]() ![]() | IsBase64String |
Checkes if the string is encoded in Base64.
|
![]() ![]() | IsNotNullT(T, ActionT) |
Checks if the value is null. If not, it will invoke action |
![]() ![]() | IsNotNullT, TResult(T, FuncT, TResult) |
Checks if the value is null. If not, it will invoke func |
![]() ![]() | Join(IEnumerableString, String) |
Concatenates the members of a constructed IEnumerableT collection of type
String, using the specified separator between each member.
|
![]() ![]() | Join(Object, String) |
Concatenates the elements of an object array, using the specified separator between each element.
|
![]() ![]() | Join(String, String) |
Concatenates all the elements of a string array, using the specified separator between each element.
|
![]() ![]() | JoinT(IEnumerableT, String) |
Concatenates the members of a collection, using the specified separator between each member.
|
![]() ![]() | Left |
Returns a string containing a specified number of characters from the left side of a string.
|
![]() ![]() | LowerFirstCharacter |
Replaces the first char of a string against a lower cased char
|
![]() ![]() | MaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey) |
Returns the item with the maximum value in a sequence of values.
|
![]() ![]() | MaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey) |
Returns the item with the maximum value in a sequence of values.
|
![]() ![]() | MinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey) |
Returns the item with the minimum value in a sequence of values.
|
![]() ![]() | MinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey) |
Returns the item with the minimum value in a sequence of values.
|
![]() ![]() | MoveT | |
![]() ![]() | OrderByTElements |
Sorts the elements of a sequence in ascending order according to a key.
|
![]() ![]() | PadOrCut(String, UInt16) |
Shortens or extends a string to a specific length. The default position is Right.
|
![]() ![]() | PadOrCut(String, UInt16, Position) |
Shortens or extends a string to a specific length.
|
![]() ![]() | PadOrCut(String, UInt16, Position, Char) |
Shortens or extends a string to a specific length.
|
![]() ![]() | ParseQueryString |
Parses a query string into a NameValueCollection using UTF8 encoding.
|
![]() ![]() | ReadToEnd(Stream) |
Reads all characters from the current position to the end of the stream.
|
![]() ![]() | ReadToEnd(Stream, Encoding) |
Reads all characters from the current position to the end of the stream.
|
![]() ![]() | RemoveNullT |
Removes all null elements from the array.
|
![]() ![]() | Replace(String, UInt32, Char) |
Replaces a char in the given index with newChar |
![]() ![]() | Replace(String, Char, Char, Int32) |
Replaces a series of chars oldChars with a single char newChar.
|
![]() ![]() | ReplaceMe(String, Char, Char, Int32) |
Replaces a char oldChar with the char newChar.
ATTENTION: The original string is the target of the manipulation.
|
![]() ![]() | ReplaceMe(String, Char, Char, Int32) |
Replaces a series of chars oldChars with a single char newChar.
ATTENTION: The original string is the target of the manipulation.
|
![]() ![]() | Right |
Returns a string containing a specified number of characters from the right side of a string.
|
![]() ![]() | SliceColumnT |
Returns the elements of the first dimension of a multidimensional array
|
![]() ![]() | SliceRowT |
Returns the elements of the second dimension of a multidimensional array
|
![]() ![]() | SwapT |
Swaps two elements in a collection
|
![]() ![]() | ToStringEx(Object, String) |
Converts the value of this instance to its equivalent string representation, using the
specified format.
The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter |
![]() ![]() | ToStringEx(Object, String, CultureInfo) |
Converts the value of this instance to its equivalent string representation, using the
specified format.
The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter |
![]() ![]() | TryDispose |
Tries to performs application-defined tasks associated with freeing, releasing, or
resetting unmanaged resources.
This will dispose an object if it implements the IDisposable interface.
|
![]() ![]() ![]() | TryEncode |
Tries to encode a byte array to a string by detecting its encoding.
It will try to detect the encoding for for UTF-7, UTF-8/16/32 (bom, no bom, little and
big endian), and local default codepage, and potentially other codepages.
|
![]() ![]() | UnzipAsBytes(Byte) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsBytes(FileInfo) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsBytes(Stream) |
Uncompresses a stream using gzip.
|
![]() ![]() | UnzipAsBytesAsync(Byte) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsBytesAsync(FileInfo) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsBytesAsync(Stream) |
Uncompresses a stream using gzip.
|
![]() ![]() | UnzipAsFile(Byte, FileInfo, Boolean) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsFile(Byte, String, Boolean) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsFile(FileInfo, FileInfo, Boolean) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsFile(FileInfo, String, Boolean) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsFile(Stream, FileInfo, Boolean) |
Uncompresses a stream using gzip.
|
![]() ![]() | UnzipAsFile(Stream, String, Boolean) |
Uncompresses a stream using gzip.
|
![]() ![]() | UnzipAsFileAsync(Byte, FileInfo, Boolean) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsFileAsync(Byte, String, Boolean) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsFileAsync(FileInfo, FileInfo, Boolean) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsFileAsync(FileInfo, String, Boolean) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsFileAsync(Stream, FileInfo, Boolean) |
Uncompresses a stream using gzip.
|
![]() ![]() | UnzipAsFileAsync(Stream, String, Boolean) |
Uncompresses a stream using gzip.
|
![]() ![]() | UnzipAsStream(Byte) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsStream(FileInfo) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsStream(Stream) |
Uncompresses a stream using gzip
|
![]() ![]() | UnzipAsStreamAsync(Byte) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsStreamAsync(FileInfo) |
Uncompresses a file using gzip.
|
![]() ![]() | UnzipAsStreamAsync(Stream) |
Uncompresses a stream using gzip
|
![]() ![]() | UnzipAsString(Byte) |
Uncompresses data using gzip. The default encoding is UTF8.
|
![]() ![]() | UnzipAsString(Stream) |
Uncompresses a stream using gzip. The default encoding is UTF8.
|
![]() ![]() | UnzipAsString(Byte, Encoding) |
Uncompresses data using gzip
|
![]() ![]() | UnzipAsString(Stream, Encoding) |
Uncompresses a stream using gzip.
|
![]() ![]() | UnzipAsString(String, Encoding) |
Uncompresses compressed string represented as base 64 string using gzip
|
![]() ![]() | UnzipAsStringAsync(Byte) |
Uncompresses data using gzip. The default encoding is UTF8.
|
![]() ![]() | UnzipAsStringAsync(Stream) |
Uncompresses a stream using gzip. The default encoding is UTF8.
|
![]() ![]() | UnzipAsStringAsync(Byte, Encoding) |
Uncompresses data using gzip
|
![]() ![]() | UnzipAsStringAsync(Stream, Encoding) |
Uncompresses a stream using gzip.
|
![]() ![]() | UnzipAsStringAsync(String, Encoding) |
Uncompresses compressed string represented as base 64 string using gzip
|
![]() ![]() | WithTType, TNew |
Makes it possible to modify or to check an object using a delegate.
|
![]() ![]() | ZipAsBase64String(String) |
Compresses a string using gzip. The default string encoding is UTF8.
|
![]() ![]() | ZipAsBase64String(String, Encoding) |
Compresses a string using gzip.
|
![]() ![]() | ZipAsBase64StringAsync(String) |
Compresses a string using gzip. The default string encoding is UTF8.
|
![]() ![]() | ZipAsBase64StringAsync(String, Encoding) |
Compresses a string using gzip.
|
![]() ![]() | ZipAsBytes(Byte) |
Compresses data using gzip
|
![]() ![]() | ZipAsBytes(FileInfo) |
Compresses a file using gzip.
|
![]() ![]() | ZipAsBytes(Stream) |
Compresses a stream using gzip
|
![]() ![]() | ZipAsBytes(String) |
Compresses a string using gzip. The default string encoding is UTF8.
|
![]() ![]() | ZipAsBytes(String, Encoding) |
Compresses a string using gzip
|
![]() ![]() | ZipAsBytesAsync(Byte) |
Compresses data using gzip
|
![]() ![]() | ZipAsBytesAsync(FileInfo) |
Compresses a file using gzip.
|
![]() ![]() | ZipAsBytesAsync(Stream) |
Compresses a stream using gzip
|
![]() ![]() | ZipAsBytesAsync(String) |
Compresses a string using gzip. The default string encoding is UTF8.
|
![]() ![]() | ZipAsBytesAsync(String, Encoding) |
Compresses a string using gzip
|
![]() ![]() | ZipAsFile(Byte, FileInfo, Boolean) |
Compresses data using gzip
|
![]() ![]() | ZipAsFile(Byte, String, Boolean) |
Compresses data using gzip
|
![]() ![]() | ZipAsFile(FileInfo, FileInfo, Boolean) |
Compresses a file using gzip.
|
![]() ![]() | ZipAsFile(FileInfo, String, Boolean) |
Compresses a file using gzip.
|
![]() ![]() | ZipAsFile(Stream, FileInfo, Boolean) |
Comptesses a stream to a file using gzip
|
![]() ![]() | ZipAsFile(Stream, String, Boolean) |
Comptesses a stream to a file using gzip
|
![]() ![]() | ZipAsFileAsync(Byte, FileInfo, Boolean) |
Compresses data using gzip
|
![]() ![]() | ZipAsFileAsync(Byte, String, Boolean) |
Compresses data using gzip
|
![]() ![]() | ZipAsFileAsync(FileInfo, FileInfo, Boolean) |
Compresses a file using gzip.
|
![]() ![]() | ZipAsFileAsync(FileInfo, String, Boolean) |
Compresses a file using gzip.
|
![]() ![]() | ZipAsFileAsync(Stream, FileInfo, Boolean) |
Comptesses a stream to a file using gzip
|
![]() ![]() | ZipAsFileAsync(Stream, String, Boolean) |
Comptesses a stream to a file using gzip
|
![]() ![]() | ZipAsStream(Byte) |
Compresses data using gzip
|
![]() ![]() | ZipAsStream(FileInfo) |
Compresses a file using gzip.
|
![]() ![]() | ZipAsStream(Stream) |
Compresses a stream using gzip
|
![]() ![]() | ZipAsStream(String) |
Compresses a string using gzip. The default string encoding is UTF8.
|
![]() ![]() | ZipAsStream(String, Encoding) |
Compresses a string using gzip
|
![]() ![]() | ZipAsStreamAsync(Byte) |
Compresses data using gzip
|
![]() ![]() | ZipAsStreamAsync(FileInfo) |
Compresses a file using gzip.
|
![]() ![]() | ZipAsStreamAsync(Stream) |
Compresses a stream using gzip
|
![]() ![]() | ZipAsStreamAsync(String) |
Compresses a string using gzip. The default string encoding is UTF8.
|
![]() ![]() | ZipAsStreamAsync(String, Encoding) |
Compresses a string using gzip
|