C# String Theory—String instance methods

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:Articles
C# Articles

C# String Theory

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. Image:UnderConstruction01.png

String instance methods

Contents


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

CopyTo Method

EndsWith Method

Equals Method

GetEnumerator Method

IndexOf Method

IndexOfAny Method

Insert Method

LastIndexOf Method

LastIndexOfAny Method

PadLeft Method

PadRight Method

Remove Method

Replace Method

Split Method

StartsWith Method

Substring Method

ToCharArray Method

ToLower Method

ToUpper Method

Trim Method

TrimEnd Method

TrimStart Method

Previous_Page_.gif Next_Page_.gif

Personal tools