C#/.NET Little Wonders: The String Remove() and Replace() Methods(www.blackrabbitcoder.net)
submitted by
BlackRabbitCoder(661) 8 months, 10 days ago
When manipulating string data, many times you want to either remove parts of a String or replace characters in a String.
You can do this yourself, of course, by building a new String while manually inspecting each char in turn, but this gets to be a bit expensive and is less maintainable.
Instead, there are two methods in the String class, ready to use, that let you do this easily: Remove() and Replace().
|category: C#
|Views: 12
tags:
C# another
Everyones tags:
Your Tags: