[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

best form implement rtrim with c#

Posted on 2009-05-09
2
Medium Priority
?
743 Views
Last Modified: 2012-05-06
wihc is the best form to implement rtrim function with c#
0
Comment
Question by:tenriquez39
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Expert Comment

by:tculler
ID: 24347092
I'm not sure what you mean by "rtrim", though I'm assuming a right-trim, so I'll just explain all three "trim" methods:

Trim() just removes all white spaces from both ends of the string (new lines, tabs, spaces, etc)
TrimStart(params System.Char[]) removes all instances of the specified characters from the "beginning" of the String. For example:
nameOfString.TrimStart('a', 'b', 'c'); // Removes a, b, and c from the start of the String
TrimEnd(params System.Char[]) is the same as TrimStart(params System.Char[]), but works on the other "end" of the String.

If you need more information, let me know.
Hope I helped,
Nate
0
 
LVL 30

Accepted Solution

by:
anarki_jimbel earned 1000 total points
ID: 24351578
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question