Name

IFormatterConverter

Synopsis

This interface defines the basic methods that convert serializable data into base class types. These conversion methods are used to parse the data contained in SerializationInfo instances.

Public Interface IFormatterConverter
                  ' Public Instance Methods
   Public Function Convert(ByVal value As Object, 
        ByVal type As Type) As Object  
   Public Function Convert(ByVal value As Object, 
        ByVal typeCode As TypeCode) As Object  
   Public Function ToBoolean(
        ByVal value As Object) As Boolean  
   Public Function ToByte( ByVal value As Object) As Byte  
   Public Function ToChar( ByVal value As Object) As Char  
   Public Function ToDateTime( ByVal value As Object) As Date  
   Public Function ToDecimal(
        ByVal value As Object) As Decimal  
   Public Function ToDouble( ByVal value As Object) As Double  
   Public Function ToInt16( ByVal value As Object) As Short  
   Public Function ToInt32( ByVal value As Object) As Integer  
   Public Function ToInt64( ByVal value As Object) As Long  
   Public Function ToSByte( ByVal value As Object) As SByte  
   Public Function ToSingle( ByVal value As Object) As Single  
   Public Function ToString( ByVal value As Object) As String  
   Public Function ToUInt16( ByVal value As Object) As UInt16  
   Public Function ToUInt32( ByVal value As Object) As UInt32  
   Public Function ToUInt64( ByVal value As Object) As UInt64  
End Interface

Implemented By

FormatterConverter

Passed To

SerializationInfo.SerializationInfo()

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.