Solved

best form implement rtrim with c#

Posted on 2009-05-09
2
704 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ConsoleSql 1 34
Linq Help 1 35
Vb.net dynamic formulas in runtime 11 63
free scanner TWAIN can be operated with a Web application 9 41
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now