Table of Contents

Method Contains

Namespace
Alternet.UI.Extensions
Assembly
Alternet.UI.Common.dll

Contains(string, string, StringComparison)

Checks whether the source string contains the specified substring using the specified comparison type.

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

Parameters

source string

The source string to check.

toCheck string

The substring to seek.

comparison StringComparison

The comparison to use.

Returns

bool

true if the substring is found; otherwise, false.