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
)
Public Shared Function Unwrap (
s As String,
opener As String,
closer As String
) As String
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:
StringThe unwrapped string.
See Also