Noemax FastInfoset.NET Report an issue | Discuss in forums
XmlFastInfosetReader.ReadElementContentAsDouble(string,string) Method
See Also 
Noemax.FastInfoset Assembly > Noemax.FastInfoset Namespace > XmlFastInfosetReader Class > ReadElementContentAsDouble Method : ReadElementContentAsDouble(String,String) Method



localname
The local name of the element.
namespaceURI
The namespace URI of the element.
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the content as a double-precision floating-point number.


Namespace: Noemax.FastInfoset
Assembly: Noemax.FastInfoset (in Noemax.FastInfoset.dll)

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public NotOverridable Function ReadElementContentAsDouble( _
   ByVal localname As String, _
   ByVal namespaceURI As String _
) As Double
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim localname As String
Dim namespaceURI As String
Dim value As Double
 
value = instance.ReadElementContentAsDouble(localname, namespaceURI)
C# 
public override double ReadElementContentAsDouble( 
   string localname,
   string namespaceURI
)
C++/CLI 
public:
double ReadElementContentAsDouble( 
   String^ localname,
   String^ namespaceURI
) override 

Parameters

localname
The local name of the element.
namespaceURI
The namespace URI of the element.

Return Value

The element content as a double-precision floating-point number.

Remarks

This method reads the start tag, the content of the element, and moves the reader past the end element tag. It expands entities and ignores processing instructions and comments. The element can only contain simple content. That is, it cannot have child elements.

If the content is a binary encoded double-precision floating-point number, the reader returns the value read. If the content is of any other type, the reader attempts to convert it to a double-precision floating-point number.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

XmlFastInfosetReader Class
XmlFastInfosetReader Members
Overload List
Base Implementation in System.Xml.XmlReader