Click or drag to resize

ExtensionMethodsDeserializeXmlToData Method

Deserializes the elements in the reader as data through the deserializers specified. If an element is read which isn't found in the valueDeserializers dictionary, the missingDeserializerHandler is called which should handle the element at the position of the reader.

Namespace:  SD.LLBLGen.Pro.Core.Xml
Assembly:  SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public static void DeserializeXmlToData(
	this XmlReader reader,
	Dictionary<string, DeserializationDefinition> deserializationDefinitions,
	Action<XmlReader> missingDeserializerHandler
)

Parameters

reader
Type: System.XmlXmlReader
The reader.
deserializationDefinitions
Type: System.Collections.GenericDictionaryString, DeserializationDefinition
The deserialization definitions.
missingDeserializerHandler
Type: SystemActionXmlReader
The missing deserializer handler.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XmlReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also