Loupe - Log - Monitor - Resolve
Gibraltar.Serialization Namespace / PacketDefinition Class / TryGetSerializableType Method
A .NET type to serialize
The optimal field type for the provided .NET type, or 0 if none can be determined.

In This Topic
    TryGetSerializableType Method
    In This Topic
    Get the lossless equivalent type for serialization
    Syntax
    'Declaration
     
    
    Public Shared Function TryGetSerializableType( _
       ByVal type As Type, _
       ByRef bestType As FieldType _
    ) As Boolean
    public static bool TryGetSerializableType( 
       Type type,
       out FieldType bestType
    )

    Parameters

    type
    A .NET type to serialize
    bestType
    The optimal field type for the provided .NET type, or 0 if none can be determined.

    Return Value

    A boolean indicating that no matching type was found.
    Remarks
    No exception is raised if no matching type can be found, instead the best type is set to zero (invalid) and false is returned.
    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