Click or drag to resize

StringUtilsUnwrap Method

Remove wrapping items from the string, possibly to multiple depths (e.g. unwrapping parentheses on "((test))" would unwrap to "test"). Typically this would be expected to be wrapping parentheses, quotes, brackets, etc.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string Unwrap(
	string s,
	string opener,
	string closer
)

Parameters

s
Type: SystemString
The string to unwrap, may be null/empty.
opener
Type: SystemString
The opening wrapper to remove (e.g. "(").
closer
Type: SystemString
The opening wrapper to remove (e.g. ")").

Return Value

Type: String
The unwrapped string.
See Also