Table of Contents

IsSequenceOf Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/StringExtensions.cs

IsSequenceOf<T>(IEnumerable<string>, CultureInfo, ITypeDescriptorContext, Func<string, CultureInfo, bool>)

Determines whether the elements of the specified source is equivalent to the specified T.

public static bool IsSequenceOf<T>(this IEnumerable<string> source, CultureInfo culture = null, ITypeDescriptorContext context = null, Func<string, CultureInfo, bool> parser = null)

Parameters

source IEnumerable<string>

The string sequence to extend.

culture CultureInfo

The culture-specific formatting information to apply on the elements within source.

context ITypeDescriptorContext

The type-specific formatting information to apply on the elements within source.

parser Func<string, CultureInfo, bool>

The function delegate that evaluates if the elements of source is equivalent to the specified T.

Returns

bool

true if elements of the source parameter was successfully converted; otherwise false.

Type Parameters

T

The type of the expected values contained within the sequence of source.

Exceptions

ArgumentNullException

source cannot be null.