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:
[ObsoleteAttribute("No longer necessary, do not use", true)]
public static string Escape(
	this string value,
	char toEscape


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