Click or drag to resize

Extensions Methods

The Extensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAppendTSource
Concatenates an item into a sequences.
Public methodStatic memberConcatT(T, T)
Concats an item to an array creating a new array containing the original array and the item.
Public methodStatic memberConcatT(T, T)
Concatenates two arrays together creating a new array containing both arrays
Public methodStatic memberContains
Returns a value indicating whether a specified substring occurs within this string.
Public methodStatic memberCopy(String)
Creates a new instance of System.String with the same value as a specified System.String.
Public methodStatic memberCopyT(T)
Copies an array.
Public methodStatic memberDistinctTSource
Returns distinct elements from a sequence by using a selector to compare values.
Public methodStatic memberEnclosedIn
Gets the string enclosed by two strings
Public methodStatic memberFlattenT
Flattens a jagged array to a one-dimensional array
Public methodStatic memberForeachT
Public methodStatic memberGetBytes(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.

Public methodStatic memberGetBytes(Byte, Int32, Int32)
Gets a specified length of bytes
Public methodStatic memberGetLines
Splits a string into lines
Public methodStatic memberGetTargetT
Public methodStatic memberGetTypes
Retrieves the types of the object array
Public methodStatic memberIndexOf(Byte, Byte)
Searches for the specified byte array and returns the zero-based index of the first occurrence within the entire Array
Public methodStatic memberIndexOfT(T, T)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire Array
Public methodStatic memberInterleaveT
Interleve combine two collections.
Public methodStatic memberIsBase64String
Checkes if the string is encoded in Base64.
Public methodStatic memberIsNotNullT(T, ActionT)
Checks if the value is null. If not, it will invoke action
Public methodStatic memberIsNotNullT, TResult(T, FuncT, TResult)
Checks if the value is null. If not, it will invoke func
Public methodStatic memberJoin(IEnumerableString, String)
Public methodStatic memberJoin(Object, String)
Concatenates the elements of an object array, using the specified separator between each element.
Public methodStatic memberJoin(String, String)
Concatenates all the elements of a string array, using the specified separator between each element.
Public methodStatic memberJoinT(IEnumerableT, String)
Concatenates the members of a collection, using the specified separator between each member.
Public methodStatic memberLeft
Returns a string containing a specified number of characters from the left side of a string.
Public methodStatic memberLowerFirstCharacter
Replaces the first char of a string against a lower cased char
Public methodStatic memberMaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns the item with the maximum value in a sequence of values.
Public methodStatic memberMaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Returns the item with the maximum value in a sequence of values.
Public methodStatic memberMinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns the item with the minimum value in a sequence of values.
Public methodStatic memberMinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Returns the item with the minimum value in a sequence of values.
Public methodStatic memberMoveT
Public methodStatic memberOrderByTElements
Sorts the elements of a sequence in ascending order according to a key.
Public methodStatic memberPadOrCut(String, UInt16)
Shortens or extends a string to a specific length. The default position is Right.
Public methodStatic memberPadOrCut(String, UInt16, Position)
Shortens or extends a string to a specific length.
Public methodStatic memberPadOrCut(String, UInt16, Position, Char)
Shortens or extends a string to a specific length.
Public methodStatic memberParseQueryString
Parses a query string into a NameValueCollection using UTF8 encoding.
Public methodStatic memberReadToEnd(Stream)
Reads all characters from the current position to the end of the stream.
Public methodStatic memberReadToEnd(Stream, Encoding)
Reads all characters from the current position to the end of the stream.
Public methodStatic memberRemoveNullT
Removes all null elements from the array.
Public methodStatic memberReplace(String, UInt32, Char)
Replaces a char in the given index with newChar
Public methodStatic memberReplace(String, Char, Char, Int32)
Replaces a series of chars oldChars with a single char newChar.
Public methodStatic memberReplaceMe(String, Char, Char, Int32)
Replaces a char oldChar with the char newChar.

ATTENTION: The original string is the target of the manipulation.

Public methodStatic memberReplaceMe(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.

Public methodStatic memberRight
Returns a string containing a specified number of characters from the right side of a string.
Public methodStatic memberSliceColumnT
Returns the elements of the first dimension of a multidimensional array
Public methodStatic memberSliceRowT
Returns the elements of the second dimension of a multidimensional array
Public methodStatic memberSwapT
Swaps two elements in a collection
Public methodStatic memberToStringEx(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

Public methodStatic memberToStringEx(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

Public methodStatic memberTryDispose
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.

Public methodStatic memberCode exampleTryEncode
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.

Public methodStatic memberUnzipAsBytes(Byte)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsBytes(FileInfo)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsBytes(Stream)
Uncompresses a stream using gzip.
Public methodStatic memberUnzipAsBytesAsync(Byte)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsBytesAsync(FileInfo)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsBytesAsync(Stream)
Uncompresses a stream using gzip.
Public methodStatic memberUnzipAsFile(Byte, FileInfo, Boolean)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsFile(Byte, String, Boolean)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsFile(FileInfo, FileInfo, Boolean)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsFile(FileInfo, String, Boolean)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsFile(Stream, FileInfo, Boolean)
Uncompresses a stream using gzip.
Public methodStatic memberUnzipAsFile(Stream, String, Boolean)
Uncompresses a stream using gzip.
Public methodStatic memberUnzipAsFileAsync(Byte, FileInfo, Boolean)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsFileAsync(Byte, String, Boolean)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsFileAsync(FileInfo, FileInfo, Boolean)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsFileAsync(FileInfo, String, Boolean)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsFileAsync(Stream, FileInfo, Boolean)
Uncompresses a stream using gzip.
Public methodStatic memberUnzipAsFileAsync(Stream, String, Boolean)
Uncompresses a stream using gzip.
Public methodStatic memberUnzipAsStream(Byte)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsStream(FileInfo)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsStream(Stream)
Uncompresses a stream using gzip
Public methodStatic memberUnzipAsStreamAsync(Byte)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsStreamAsync(FileInfo)
Uncompresses a file using gzip.
Public methodStatic memberUnzipAsStreamAsync(Stream)
Uncompresses a stream using gzip
Public methodStatic memberUnzipAsString(Byte)
Uncompresses data using gzip. The default encoding is UTF8.
Public methodStatic memberUnzipAsString(Stream)
Uncompresses a stream using gzip. The default encoding is UTF8.
Public methodStatic memberUnzipAsString(Byte, Encoding)
Uncompresses data using gzip
Public methodStatic memberUnzipAsString(Stream, Encoding)
Uncompresses a stream using gzip.
Public methodStatic memberUnzipAsString(String, Encoding)
Uncompresses compressed string represented as base 64 string using gzip
Public methodStatic memberUnzipAsStringAsync(Byte)
Uncompresses data using gzip. The default encoding is UTF8.
Public methodStatic memberUnzipAsStringAsync(Stream)
Uncompresses a stream using gzip. The default encoding is UTF8.
Public methodStatic memberUnzipAsStringAsync(Byte, Encoding)
Uncompresses data using gzip
Public methodStatic memberUnzipAsStringAsync(Stream, Encoding)
Uncompresses a stream using gzip.
Public methodStatic memberUnzipAsStringAsync(String, Encoding)
Uncompresses compressed string represented as base 64 string using gzip
Public methodStatic memberWithTType, TNew
Makes it possible to modify or to check an object using a delegate.
Public methodStatic memberZipAsBase64String(String)
Compresses a string using gzip. The default string encoding is UTF8.
Public methodStatic memberZipAsBase64String(String, Encoding)
Compresses a string using gzip.
Public methodStatic memberZipAsBase64StringAsync(String)
Compresses a string using gzip. The default string encoding is UTF8.
Public methodStatic memberZipAsBase64StringAsync(String, Encoding)
Compresses a string using gzip.
Public methodStatic memberZipAsBytes(Byte)
Compresses data using gzip
Public methodStatic memberZipAsBytes(FileInfo)
Compresses a file using gzip.
Public methodStatic memberZipAsBytes(Stream)
Compresses a stream using gzip
Public methodStatic memberZipAsBytes(String)
Compresses a string using gzip. The default string encoding is UTF8.
Public methodStatic memberZipAsBytes(String, Encoding)
Compresses a string using gzip
Public methodStatic memberZipAsBytesAsync(Byte)
Compresses data using gzip
Public methodStatic memberZipAsBytesAsync(FileInfo)
Compresses a file using gzip.
Public methodStatic memberZipAsBytesAsync(Stream)
Compresses a stream using gzip
Public methodStatic memberZipAsBytesAsync(String)
Compresses a string using gzip. The default string encoding is UTF8.
Public methodStatic memberZipAsBytesAsync(String, Encoding)
Compresses a string using gzip
Public methodStatic memberZipAsFile(Byte, FileInfo, Boolean)
Compresses data using gzip
Public methodStatic memberZipAsFile(Byte, String, Boolean)
Compresses data using gzip
Public methodStatic memberZipAsFile(FileInfo, FileInfo, Boolean)
Compresses a file using gzip.
Public methodStatic memberZipAsFile(FileInfo, String, Boolean)
Compresses a file using gzip.
Public methodStatic memberZipAsFile(Stream, FileInfo, Boolean)
Comptesses a stream to a file using gzip
Public methodStatic memberZipAsFile(Stream, String, Boolean)
Comptesses a stream to a file using gzip
Public methodStatic memberZipAsFileAsync(Byte, FileInfo, Boolean)
Compresses data using gzip
Public methodStatic memberZipAsFileAsync(Byte, String, Boolean)
Compresses data using gzip
Public methodStatic memberZipAsFileAsync(FileInfo, FileInfo, Boolean)
Compresses a file using gzip.
Public methodStatic memberZipAsFileAsync(FileInfo, String, Boolean)
Compresses a file using gzip.
Public methodStatic memberZipAsFileAsync(Stream, FileInfo, Boolean)
Comptesses a stream to a file using gzip
Public methodStatic memberZipAsFileAsync(Stream, String, Boolean)
Comptesses a stream to a file using gzip
Public methodStatic memberZipAsStream(Byte)
Compresses data using gzip
Public methodStatic memberZipAsStream(FileInfo)
Compresses a file using gzip.
Public methodStatic memberZipAsStream(Stream)
Compresses a stream using gzip
Public methodStatic memberZipAsStream(String)
Compresses a string using gzip. The default string encoding is UTF8.
Public methodStatic memberZipAsStream(String, Encoding)
Compresses a string using gzip
Public methodStatic memberZipAsStreamAsync(Byte)
Compresses data using gzip
Public methodStatic memberZipAsStreamAsync(FileInfo)
Compresses a file using gzip.
Public methodStatic memberZipAsStreamAsync(Stream)
Compresses a stream using gzip
Public methodStatic memberZipAsStreamAsync(String)
Compresses a string using gzip. The default string encoding is UTF8.
Public methodStatic memberZipAsStreamAsync(String, Encoding)
Compresses a string using gzip
Top
See Also