Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FormatterConverter Class
Collapse the table of content
Expand the table of content

FormatterConverter Class

Represents a base implementation of the IFormatterConverter interface that uses the Convert class and the IConvertible interface.

System.Object
  System.Runtime.Serialization.FormatterConverter

Namespace:  System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)]
public class FormatterConverter : IFormatterConverter

The FormatterConverter type exposes the following members.

  NameDescription
Public methodFormatterConverterInitializes a new instance of the FormatterConverter class.
Top

  NameDescription
Public methodConvert(Object, Type)Converts a value to the given Type.
Public methodConvert(Object, TypeCode)Converts a value to the given TypeCode.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToBooleanConverts a value to a Boolean.
Public methodToByteConverts a value to an 8-bit unsigned integer.
Public methodToCharConverts a value to a Unicode character.
Public methodToDateTimeConverts a value to a DateTime.
Public methodToDecimalConverts a value to a Decimal.
Public methodToDoubleConverts a value to a double-precision floating-point number.
Public methodToInt16Converts a value to a 16-bit signed integer.
Public methodToInt32Converts a value to a 32-bit signed integer.
Public methodToInt64Converts a value to a 64-bit signed integer.
Public methodToSByteConverts a value to a SByte.
Public methodToSingleConverts a value to a single-precision floating-point number.
Public methodToString()Returns a string that represents the current object. (Inherited from Object.)
Public methodToString(Object)Converts the specified object to a String.
Public methodToUInt16Converts a value to a 16-bit unsigned integer.
Public methodToUInt32Converts a value to a 32-bit unsigned integer.
Public methodToUInt64Converts a value to a 64-bit unsigned integer.
Top

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft