System.ComponentModel.Int64Converter Class

Provides a type converter to convert 64-bit signed integer objects to and from various other representations.

See Also: Int64Converter Members

Syntax

public class Int64Converter : BaseNumberConverter

Remarks

This converter can only convert a 64-bit signed integer object to and from a string. The long value type represents integers with values ranging from negative 9,223,372,036,854,775,808 through positive 9,223,372,036,854,775,807.

The erload:System.ComponentModel.TypeConverter.ConvertFrom method uses the long.Parse(string) method of long with the integer value of System.Globalization.NumberStyles.

The erload:System.ComponentModel.TypeConverter.ConvertTo method uses the general ("G") format for the string returned.

For more information about type converters, see the System.ComponentModel.TypeConverter base class and How to: Implement a Type Converter.

Note:

You should never create an instance of an System.ComponentModel.Int64Converter. Instead, call the TypeDescriptor.GetConverter(object) method of System.ComponentModel.TypeDescriptor. For more information, see the examples in the System.ComponentModel.TypeConverter base class.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0