7.1.
static int Compare(string strA, string strB, StringComparison comparisonType)
bool Equals(string value, StringComparison comparisonType)
int IndexOf(char value)
int IndexOf(string value, StringComparison comparisonType)
, strA strB; , strA strB; , . comparisonType true, , value. comparisonType , value. . -1, . , value. -1, . comparisonType int LastlndexOf(char value)
int LastlndexOf(string value, StringComparison comparisonType)
string ToLower(Culturelnfo. CurrentCulture culture)
string ToUpper(Culturelnfo. CurrentCulture culture)
, value. . -1, , value. -1, . comparisonType
. culture
. - culture
, .
string str = "";
Console.WriteLine(str [0]);
"", "". , . , , , . .
==. , == , , . string. == , . ! =. . Equals (), StringComparison. CurrentCulture. , Compare () , . , Equals () .
.
// .
Using System;