C# String Theory—String instance methods
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| CSharp-Online.NET:Articles |
| C# Articles |
| edit |
| This page is under construction and not in a completed state. If you do not find here that which you seek, perform a search. For help with various kinds of searches, consult Searching. |
|
[edit]
String instance methods
[edit]
CompareTo Method
- Syntax
public int CompareTo (Object value)
- Parameters
where Object evaluates to a String. value must be a String object or ArgumentException is thrown.
- Return Value
Returns a 32-bit signed integer indicating the lexical relationship between the two comparands:
| Value | Condition |
| Less than zero | This instance is less than value.
|
| Zero | This instance equals value.
|
| Greater than zero | This instance is greater than value; or, value is a null reference .
|
- Exceptions
[edit]
CopyTo Method
[edit]
EndsWith Method
[edit]
Equals Method
[edit]
GetEnumerator Method
[edit]
IndexOf Method
[edit]
IndexOfAny Method
[edit]
Insert Method
[edit]
LastIndexOf Method
[edit]
LastIndexOfAny Method
[edit]
PadLeft Method
[edit]
PadRight Method
[edit]
Remove Method
[edit]
Replace Method
[edit]
Split Method
[edit]
StartsWith Method
[edit]
Substring Method
[edit]
ToCharArray Method
[edit]
ToLower Method
[edit]
ToUpper Method
[edit]
Trim Method
[edit]
TrimEnd Method
[edit]
TrimStart Method
|


