Provides access to members that convert to and from XML to native types.
Members
Name | Description | |
---|---|---|
![]() |
FromBinary | Converts a byte array to an XML byte array. |
![]() |
FromBoolean | Converts a boolean to an XML boolean. |
![]() |
FromByte | Converts a byte to an XML byte. |
![]() |
FromDate | Converts a date to an XML date. |
![]() |
FromDouble | Converts a double to an XML double. |
![]() |
FromFloat | Converts a float to an XML float. |
![]() |
FromInteger | Converts a long to an XML integer. |
![]() |
FromShort | Converts a short to an XML short. |
![]() |
ToBinary | Converts an XML byte array to a byte array. |
![]() |
ToBoolean | Converts an XML boolean to a boolean. |
![]() |
ToByte | Converts an XML byte to a byte. |
![]() |
ToDate | Converts an XML date to a date. |
![]() |
ToDouble | Converts an XML double to a double. |
![]() |
ToFloat | Converts an XML float to a float. |
![]() |
ToInteger | Converts an XML integer to a long. |
![]() |
ToObject | Creates an object based on XML type information. |
![]() |
ToShort | Converts an XML short to a short. |
IXMLTypeMapper.FromBinary Method
Converts a byte array to an XML byte array.
Public Function FromBinary ( _
ByRef Value As Byte[]& _
) As String
public string FromBinary (
ref Byte[]& Value
);
IXMLTypeMapper.FromBoolean Method
Converts a boolean to an XML boolean.
Public Function FromBoolean ( _
ByVal Value As Boolean _
) As String
public string FromBoolean (
bool Value
);
IXMLTypeMapper.FromByte Method
Converts a byte to an XML byte.
Public Function FromByte ( _
ByVal Value As Byte _
) As String
public string FromByte (
byte Value
);
IXMLTypeMapper.FromDate Method
Converts a date to an XML date.
Public Function FromDate ( _
ByVal Value As DateTime _
) As String
public string FromDate (
DateTime Value
);
IXMLTypeMapper.FromDouble Method
Converts a double to an XML double.
Public Function FromDouble ( _
ByVal Value As Double _
) As String
public string FromDouble (
double Value
);
IXMLTypeMapper.FromFloat Method
Converts a float to an XML float.
Public Function FromFloat ( _
ByVal Value As Single _
) As String
public string FromFloat (
float Value
);
IXMLTypeMapper.FromInteger Method
Converts a long to an XML integer.
Public Function FromInteger ( _
ByVal Value As Integer _
) As String
public string FromInteger (
int Value
);
IXMLTypeMapper.FromShort Method
Converts a short to an XML short.
Public Function FromShort ( _
ByVal Value As Short _
) As String
public string FromShort (
short Value
);
IXMLTypeMapper.ToBinary Method
Converts an XML byte array to a byte array.
Public Function ToBinary ( _
ByVal Text As String _
) As Byte[]
public Byte[] ToBinary (
string Text
);
IXMLTypeMapper.ToBoolean Method
Converts an XML boolean to a boolean.
Public Function ToBoolean ( _
ByVal Text As String _
) As Boolean
public bool ToBoolean (
string Text
);
Remarks
For proper conversion the text string for boolean value must be all lowercase.For example,Dim pXMLTypeMapper as IXMLTypeMapperSet pXMLTypeMapper = new XMLTypeMapperDim strValue as StringDim boolValue as BooleanstrValue = "true"boolValue = pXMLTypeMapper.ToBoolean(strValue)
IXMLTypeMapper.ToByte Method
Converts an XML byte to a byte.
Public Function ToByte ( _
ByVal Text As String _
) As Byte
public byte ToByte (
string Text
);
IXMLTypeMapper.ToDate Method
Converts an XML date to a date.
Public Function ToDate ( _
ByVal Text As String _
) As DateTime
public DateTime ToDate (
string Text
);
IXMLTypeMapper.ToDouble Method
Converts an XML double to a double.
Public Function ToDouble ( _
ByVal Text As String _
) As Double
public double ToDouble (
string Text
);
IXMLTypeMapper.ToFloat Method
Converts an XML float to a float.
Public Function ToFloat ( _
ByVal Text As String _
) As Single
public float ToFloat (
string Text
);
IXMLTypeMapper.ToInteger Method
Converts an XML integer to a long.
Public Function ToInteger ( _
ByVal Text As String _
) As Integer
public int ToInteger (
string Text
);
IXMLTypeMapper.ToObject Method
Creates an object based on XML type information.
Public Function ToObject ( _
ByVal NamespaceURI As String, _
ByVal TypeName As String _
) As Object
public object ToObject (
string NamespaceURI,
string TypeName
);
IXMLTypeMapper.ToShort Method
Converts an XML short to a short.
Public Function ToShort ( _
ByVal Text As String _
) As Short
public short ToShort (
string Text
);
Classes that implement IXMLTypeMapper
Classes | Description |
---|---|
XMLTypeMapper | A type converter for XML and native types. |