Click or drag to resize
ConstantsContains Method
Hartismere School

[This is preliminary documentation and is subject to change.]

Searches a string[] for a given word

Namespace: EJW.TextBasedAdventure
Assembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntax
public static bool Contains(
	this string[] str,
	string String
)

Parameters

str
Type: SystemString
String
Type: SystemString
Word to search for

Return Value

Type: Boolean
true if the word is found

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The search is not case sensitive.
See Also