Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CollapseWhitespace Method
Collapse the table of content
Expand the table of content

XmlSerializationReader.CollapseWhitespace Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Removes all occurrences of white space characters from the beginning and end of the specified string.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

protected string CollapseWhitespace(
	string value


Type: System.String

The string that will have its white space trimmed.

Return Value

Type: System.String
The trimmed string.

The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft