Click or drag to resize

ExtensionsEscape Method (String, Char)

Note: This API is now obsolete.

Escapes all occurrences of a given character in a String.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
[ObsoleteAttribute("No longer necessary, do not use", true)]
public static string Escape(
	this string value,
	char toEscape
)

Parameters

value
Type: SystemString
String.
toEscape
Type: SystemChar
Character to escape.

Return Value

Type: String

[Missing <returns> documentation for "M:VDS.RDF.Extensions.Escape(System.String,System.Char)"]

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).
Remarks
Ignores all existing escapes (indicated by a \) and so avoids double escaping as far as possible.
See Also