?
Solved

best form implement rtrim with c#

Posted on 2009-05-09
2
Medium Priority
?
736 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
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…
Suggested Courses

770 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