Click or drag to resize

ObjectUtilsCreateInstanceSafe Method

.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
Creates object instance using constructor that matches specified parameters.

Namespace:  Tangosol.Util
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
Syntax
C#
public static Object CreateInstanceSafe(
	Type objectType,
	params Object[] parameters
)

Parameters

objectType
Type: SystemType
Type of object to create.
parameters
Type: SystemObject
Serializer parameters.

Return Value

Type: Object
An instance of the specified objectType.
Remarks
Returns null rather than throwing an exception, if the specified constructor doesn't exist or fails to be invoked.
See Also