EscapingUtilities Class

Summary

This class implements static methods to assist with unescaping of %XX codes in the MSBuild file format.
Namespace
NBuildKit.MsBuild.Tasks.Core
Base Types
  • object
graph TD Base0["object"]-->Type Type["EscapingUtilities"] class Type type-node

Syntax

public static class EscapingUtilities

Remarks

Taken from here: https://github.com/Microsoft/msbuild/blob/master/src/Shared/EscapingUtilities.cs because it is internal so we can't get to it.

Methods

Name Value Summary
Escape(string) string
Adds instances of %XX in the input string where the char to be escaped appears XX is the hex value of the ASCII code for the char.
static
UnescapeAll(string) string
Replaces all instances of %XX in the input string with the character represented by the hexadecimal number XX.
static
UnescapeAll(string, bool) string
Replaces all instances of %XX in the input string with the character represented by the hexadecimal number XX.
static