Click or drag to resize
ExtensionMethods Methods

The ExtensionMethods type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDeserializeXmlToData
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.
Public methodStatic memberGetMandatoryAttribute
Gets the mandatory attribute. if it's not found, an XmlException is thrown
Public methodStatic memberGetOptionalAttributeT(XmlReader, String, FuncString, T)
Gets the value of an optional attribute. If the attribute isn't present, string.Empty is returned.
Public methodStatic memberGetOptionalAttributeT(XmlReader, String, FuncString, T, T)
Gets the value of an optional attribute. If the attribute isn't present, defaultValue is returned.
Public methodStatic memberGetSubtreeReader
Gets a new subtree reader which is prepared and is positioned at the same node the passed in reader is on, so any subsequential read moves automatically to any subelements available
Public methodStatic memberPrepareReaderForFirstRead
Prepares the reader for first read. This means that if the reader is in the initial state, a Read is executed. If the first read then sees an XML declaration, it's skipped as well
Public methodStatic memberReadCDataElement
Reads a CData element. It assumes reader is positioned on the start element of the CData element
Public methodStatic memberReadNext
Reads the next element. This routine is similar to Read() but it returns false on EOF and when reader is on an end element and the element isn't an empty element. Read() only returns false when it's hit EOF. Use this on a reader created with GetSubtreeReader.
Public methodStatic memberSerializeDataToXml
Serializes the data produced by the serializers to the serializer using normal elements.
Public methodStatic memberWriteCDataElement
Writes a new element to the writer with the element data in a CData block
Public methodStatic memberWriteElementWithAttribute
Writes a full element with the name specified and an additional attribute with the name and value specified.
Public methodStatic memberWriteOptionalAttributeStringT(XmlWriter, String, T)
Writes an optional attribute string. If attributeValue is equal to the default of T, no attribute is written.
Public methodStatic memberWriteOptionalAttributeStringT(XmlWriter, String, T, String)
Writes an optional attribute string. If attributeValue is equal to the default of T, no attribute is written.
Public methodStatic memberWriteOptionalAttributeStringT(XmlWriter, String, T, String, T)
Writes an optional attribute string. If attributeValue is equal to the default null value specified, no attribute is written.
Top
See Also