IsSequenceOf Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
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
sourceIEnumerable<string>The string sequence to extend.
cultureCultureInfoThe culture-specific formatting information to apply on the elements within
source.contextITypeDescriptorContextThe type-specific formatting information to apply on the elements within
source.parserFunc<string, CultureInfo, bool>The function delegate that evaluates if the elements of
sourceis equivalent to the specifiedT.
Returns
- bool
trueif elements of thesourceparameter was successfully converted; otherwisefalse.
Type Parameters
TThe type of the expected values contained within the sequence of
source.
Exceptions
- ArgumentNullException
sourcecannot be null.