Solved

best form implement rtrim with c#

Posted on 2009-05-09
2
719 Views
Last Modified: 2012-05-06
wihc is the best form to implement rtrim function with c#
0
Comment
Question by:tenriquez39
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 29

Accepted Solution

by:
anarki_jimbel earned 250 total points
ID: 24351578
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
System.Security 2 28
send messages to whatsapp programatically 2 65
Hey Audio! 9 44
how to check to see if datatable has headers or not 2 34
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…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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