Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# contains

public bool Contains (char value);
public bool Contains (string value);
public bool Contains (char value, StringComparison comparisonType);
public bool Contains (string value, StringComparison comparisonType);

//ex
string s1 = "The quick brown fox jumps over the lazy dog";
string s2 = "fox";
bool b = s1.Contains(s2);
Source by learn.microsoft.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
4+8 =