string class : Remove(string) method

Description

Gets a new instance of the string which the specified string was deleted.

Syntax

stringInstance.Remove(string deletionString)

Arguments

ClassNameDescription
stringdeletionStringString to be deleted.

Return value

ClassDescription
stringA new instance of the string which the specified string was deleted.

Sample code

string anyString = "aaabbbccc";

string removedString = anyString.Remove("b"); // The result (removedString) is "aaaccc".

Notes

Remove(string) method is a member introduced from the Rice 1.0.1.0.

Links for reference

None

Copyright © Rice All rights reserved.