System.Runtime.Serialization.IFormatterConverter Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Serialization
Summary
Provides the connection between an instance of SerializationInfo and the formatter-provided class best suited to parse the data inside the SerializationInfo.
This class is not CLS Compliant

C# Syntax:
[CLSCompliant(false)]
public interface IFormatterConverter
See also:
System.Runtime.Serialization Namespace

System.Runtime.Serialization.IFormatterConverter Member List:

Public Methods
Convert Overloaded:
Convert(object value, Type type)

Converts a value to the given Type.
Convert Overloaded:
Convert(object value, TypeCode typeCode)

Converts a value to the given TypeCode.
ToBoolean Converts a value to a Boolean.
ToByte Converts a value to an 8-bit unsigned integer.
ToChar Converts a value to a Unicode character.
ToDateTime Converts a value to a DateTime.
ToDecimal Converts a value to a Decimal.
ToDouble Converts a value to a double-precision floating-point number.
ToInt16 Converts a value to a 16-bit signed integer.
ToInt32 Converts a value to a 32-bit signed integer.
ToInt64 Converts a value to a 64-bit signed integer.
ToSByte Converts a value to an SByte.
ToSingle Converts a value to a single-precision floating-point number.
ToString Converts a value to a String.
ToUInt16 Converts a value to a 16-bit unsigned integer.
ToUInt32 Converts a value to a 32-bit unsigned integer.
ToUInt64 Converts a value to a 64-bit unsigned integer.

System.Runtime.Serialization.IFormatterConverter Member Details

Overloaded Method: Convert(
   object value,
   Type type
)
Summary
Converts a value to the given Type.
This class is not CLS Compliant

C# Syntax:
object Convert(
   object value,
   Type type
);
Parameters:

value

The object to be converted.

type

The Type into which value is to be converted.

Return Value:
The converted value.

Return to top


Overloaded Method: Convert(
   object value,
   TypeCode typeCode
)
Summary
Converts a value to the given TypeCode.
This class is not CLS Compliant

C# Syntax:
object Convert(
   object value,
   TypeCode typeCode
);
Parameters:

value

The object to be converted.

typeCode

The TypeCode into which value is to be converted.

Return Value:
The converted value.

Return to top


Method: ToBoolean(
   object value
)
Summary
Converts a value to a Boolean.
This class is not CLS Compliant

C# Syntax:
bool ToBoolean(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToByte(
   object value
)
Summary
Converts a value to an 8-bit unsigned integer.
This class is not CLS Compliant

C# Syntax:
byte ToByte(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToChar(
   object value
)
Summary
Converts a value to a Unicode character.
This class is not CLS Compliant

C# Syntax:
char ToChar(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToDateTime(
   object value
)
Summary
Converts a value to a DateTime.
This class is not CLS Compliant

C# Syntax:
DateTime ToDateTime(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToDecimal(
   object value
)
Summary
Converts a value to a Decimal.
This class is not CLS Compliant

C# Syntax:
decimal ToDecimal(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToDouble(
   object value
)
Summary
Converts a value to a double-precision floating-point number.
This class is not CLS Compliant

C# Syntax:
double ToDouble(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToInt16(
   object value
)
Summary
Converts a value to a 16-bit signed integer.
This class is not CLS Compliant

C# Syntax:
short ToInt16(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToInt32(
   object value
)
Summary
Converts a value to a 32-bit signed integer.
This class is not CLS Compliant

C# Syntax:
int ToInt32(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToInt64(
   object value
)
Summary
Converts a value to a 64-bit signed integer.
This class is not CLS Compliant

C# Syntax:
long ToInt64(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToSByte(
   object value
)
Summary
Converts a value to an SByte.
This class is not CLS Compliant

C# Syntax:
sbyte ToSByte(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToSingle(
   object value
)
Summary
Converts a value to a single-precision floating-point number.
This class is not CLS Compliant

C# Syntax:
float ToSingle(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToString(
   object value
)
Summary
Converts a value to a String.
This class is not CLS Compliant

C# Syntax:
string ToString(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToUInt16(
   object value
)
Summary
Converts a value to a 16-bit unsigned integer.
This class is not CLS Compliant

C# Syntax:
ushort ToUInt16(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToUInt32(
   object value
)
Summary
Converts a value to a 32-bit unsigned integer.
This class is not CLS Compliant

C# Syntax:
uint ToUInt32(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Method: ToUInt64(
   object value
)
Summary
Converts a value to a 64-bit unsigned integer.
This class is not CLS Compliant

C# Syntax:
ulong ToUInt64(
   object value
);
Parameters:

value

The object to be converted.

Return Value:
The converted value.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.