Replace, Left, Right functions in C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Does C# has functions such as replace, left, right, substring for strings?
Without these functions, it's not easy to process strings.

TIA
 
The String class has those methods.

Ex.)

String a = "hello";
a.Substring();
a.Remove();
a.Trim();
a.TrimEnd();
a.TrimStart();
a.ToUpper();

You get the idea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top