StringExtensions..::..RemoveAllBut Method

Removes all but.

Namespace:  MichaelBrandonMorris.Extensions.PrimitiveExtensions
Assembly:  MichaelBrandonMorris.Extensions.PrimitiveExtensions (in MichaelBrandonMorris.Extensions.PrimitiveExtensions.dll)

Syntax


public static string RemoveAllBut(
	string s,
	IEnumerable<char> characters
)
Public Shared Function RemoveAllBut ( _
	s As String, _
	characters As IEnumerable(Of Char) _
) As String
public:
static String^ RemoveAllBut(
	String^ s, 
	IEnumerable<wchar_t^>^ characters
)

Parameters

s
Type: String
The s.
characters
Type: IEnumerable<(Of <(<'Char>)>)>
The characters.

Return Value

System.String.