XmlSerializationReader.ToByteArrayHex Method (Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Instructs the XmlReader to read the string value at its current position and return it as a hexadecimal byte array.

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

protected byte[] ToByteArrayHex(
	bool isNull


Type: System.Boolean

true to return null; false to return a hexadecimal byte array.

Return Value

Type: System.Byte[]

A hexadecimal byte array; otherwise, null if the value of the isNull parameter is true.

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
Available since 1.1
Available since 2.0
Return to top