Click or drag to resize

PofReflectionHelperEnsureType Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Validate that the supplied object is compatible with the specified type.

Namespace:  Tangosol.IO.Pof.Reflection
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public static Object EnsureType(
	Object o,
	int typeId,
	IPofContext ctx
)

Parameters

o
Type: SystemObject
The object.
typeId
Type: SystemInt32
The Pof type identifier; includes Pof intrinsics, Pof compact values, and user types.
ctx
Type: Tangosol.IO.PofIPofContext
The IPofContext.

Return Value

Type: Object
The original object.
Exceptions
ExceptionCondition
ArgumentException If the specified type is a user type that is unknown to this IPofContext or there is no type mapping.
InvalidCastException If the specified object is not assignable to the specified type.
See Also