This version of Unity is unsupported.

TypeUtility.CanBeInstantiated

Declaration

public static bool CanBeInstantiated(Type type);

Parameters

type The type to query.

Returns

bool <see langword="true" /> if the given type is instantiatable.

Description

Returns <see langword="true" /> if the specified type is instantiatable.

Instantiatable is defined as either having a default or implicit constructor or having a registered instantiation method.


Returns

bool <see langword="true" /> if type T is instantiatable.

Description

Returns <see langword="true" /> if type T is instantiatable.

Instantiatable is defined as either having a default or implicit constructor or having a registered instantiation method.