Table of Contents

Class ExtensionMethods

Namespace
Innova.Data
Assembly
Innova.Data.dll

Provides extension methods for various types.

public static class ExtensionMethods
Inheritance
ExtensionMethods

Methods

And<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)

Combines two predicate expressions using the logical AND operator.

Any<TSource>(ParameterExpression, Expression<Func<TSource, bool>>)

Creates an expression that determines whether any element of a sequence satisfies a specified condition.

AsParameters<TSource>(Expression<Func<TSource, bool>>)

Replaces the constant values in a predicate expression with parameters.

Batch<T>(IEnumerable<T>, int)

Enumerates a sequence in chunks, yielding batches of a certain size to the enumerator.

Contains(string, string, StringComparison)

Determines whether a string contains a specified value using the specified string comparison option.

ContainsCaseInsensitive(string, string)

Determines whether a string contains a specified value, ignoring case.

CopyToWithProgress(Stream, Stream, IProgress<ProgressInfo>, long?, int)

Copies the contents of a Stream to another Stream with progress reporting.

CopyToWithProgressAsync(Stream, Stream, IProgress<ProgressInfo>, int, long?, CancellationToken)

Asynchronously copies the contents of a Stream to another Stream with progress reporting.

False<T>()

Creates a predicate expression that always evaluates to false.

FastCast<T>(IEnumerable)

Casts the elements of a non-generic IEnumerable to the specified type.

Or<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)

Combines two predicate expressions using the logical OR operator.

ParseToDateTime(string)

Parses a string representation of a date and time to a DateTime object.

True<T>()

Creates a predicate expression that always evaluates to true.

WhereWithParameters<TSource>(IQueryable<TSource>, Expression<Func<TSource, bool>>)

Filters a sequence of values based on a predicate expression with parameters.