System.Xml.Serialization.XmlSerializationReader.CollapseWhitespace Method

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

Syntax

protected string CollapseWhitespace (string value)

Parameters

value
The string that will have its white space trimmed.

Returns

The trimmed string.

Remarks

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

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0