Solved

best form implement rtrim with c#

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

23 Experts available now in Live!

Get 1:1 Help Now