Table of Contents

Class GeneralExtensions

Namespace
ExControls
Assembly
ExControls.dll

General extension methods for collections and strings.

public static class GeneralExtensions
Inheritance
GeneralExtensions
Inherited Members

Methods

Contains(string, string, StringComparison)

Returns whether the string contains toCheck using the specified comparison.

public static bool Contains(this string source, string toCheck, StringComparison comp)

Parameters

source string

string to search in

toCheck string

string to look for

comp StringComparison

comparison rules

Returns

bool

true if toCheck occurs in source; false also when source is null

ToExBindingList<TSource>(ICollection<TSource>)

Converts collection to ExBindingList<T>.

public static ExBindingList<TSource> ToExBindingList<TSource>(this ICollection<TSource> source)

Parameters

source ICollection<TSource>

The collection to convert.

Returns

ExBindingList<TSource>

list of the type ExBindingList<T>.

Type Parameters

TSource

Type of item in collection.

Exceptions

ArgumentNullException

when source is null.