IPrimitiveValueConverter Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Class for defining a primitive value conversion for a type definition. Suppose a type definition defines a primitive type X (underlying type) as a new type Y, and the type Y has a logically corresponding CLR type Z, the ConvertToUnderlyingType method converts value from Z to X and the ConvertFromUnderlyingType method converts value from X to Z.
public interface IPrimitiveValueConverter
type IPrimitiveValueConverter = interface
Public Interface IPrimitiveValueConverter
Methods
ConvertFromUnderlyingType(Object) |
Converts the given primitive value from the underlying type to the CLR type defined in a type definition. |
ConvertToUnderlyingType(Object) |
Converts the given primitive value from the CLR type to the underlying type defined in a type definition. |