Loupe - Log - Monitor - Resolve
Gibraltar.Serialization Namespace / FieldDefinition Class / IsCompatible Method
The prospective value type to be serialized

In This Topic
    IsCompatible Method
    In This Topic
    Indicates if this field definition can store data of the provided type losslessly.
    Syntax
    'Declaration
     
    
    Public Function IsCompatible( _
       ByVal type As FieldType _
    ) As Boolean
    public bool IsCompatible( 
       FieldType type
    )

    Parameters

    type
    The prospective value type to be serialized

    Return Value

    True if the provided type can be converted into this field type without losing precision.
    Remarks
    This method will indicate if a provided value type is sufficiently compatible with the exact type of this field to be converted without losing data. For example, a signed integer can be stored in an unsigned integer field. A short can be stored as a long, etc.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also