Table of Contents

Class StringExtensionMethods

Namespace
CodeBase
Assembly
4Experience.CodeBase.Core.Runtime.dll
public static class StringExtensionMethods
Inheritance
StringExtensionMethods

Methods

ContainsAny(List<string>, List<string>)

Check if two string lists contains same element. Just one element of the same is enough to return true.

public static bool ContainsAny(this List<string> target, List<string> lookupArray)

Parameters

target List<string>
lookupArray List<string>

Returns

bool

ContainsAny(string[], string[])

Check if two string arrays contains any same element. Just one element of the same is enough to return true.

public static bool ContainsAny(this string[] target, string[] lookupArray)

Parameters

target string[]
lookupArray string[]

Returns

bool

ContainsElement(List<string>, string)

Check if list of strings contains lookup value.

public static bool ContainsElement(this List<string> target, string lookupObject)

Parameters

target List<string>
lookupObject string

Returns

bool

ContainsElement(string[], string)

Check if array of strings contains lookup value.

public static bool ContainsElement(this string[] target, string lookupObject)

Parameters

target string[]
lookupObject string

Returns

bool