.


:




:

































 

 

 

 


string Length, .




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;





:


: 2016-12-03; !; : 362 |


:

:

, .
==> ...

1632 - | 1562 -


© 2015-2024 lektsii.org - -

: 0.009 .