Export (0) Print
Expand All

Assert.ReplaceNullChars Method

In a string, replaces null characters ('\0') with "\\0".

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public static string ReplaceNullChars(
	string input
)

Parameters

input
Type: String

The string in which to search for and replace null characters.

Return Value

Type: String
The converted string with null characters replaced by "\\0".

Show:
© 2014 Microsoft