Skip to content

M_Ekstrand_Text_StringOperations_Remove

Fred Ekstrand edited this page Aug 4, 2020 · 1 revision

StringOperations.Remove Method (String, Char[])

Returns a new string in which the specified characters from the current string are deleted.

Namespace: Ekstrand.Text
Assembly: StringOperations (in StringOperations.dll) Version: 1.0.0.3 (1.0.0.3)

Syntax

C#

public static string Remove(
	this string str,
	char[] oldChars
)

VB

<ExtensionAttribute>
Public Shared Function Remove ( 
	str As String,
	oldChars As Char()
) As String

C++

public:
[ExtensionAttribute]
static String^ Remove(
	String^ str, 
	array<wchar_t>^ oldChars
)

F#

[<ExtensionAttribute>]
static member Remove : 
        str : string * 
        oldChars : char[] -> string 

Parameters

 

str
Type: System.String
String to have characters deleted.
oldChars
Type: System.Char[]
Character array of characters to be deleted from the given string.

Return Value

Type: String
Returns a new string which the specified characters are deleted.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

StringOperations Class
Remove Overload
Ekstrand.Text Namespace

Clone this wiki locally