Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

string contains c#

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: #string
ADD COMMENT
Topic
Name
2+5 =