TypeUtility.TryInstantiateArray

Declaration

public static bool TryInstantiateArray(int count, out TArray instance);

Parameters

count The count the array should have.
instance When this method returns, contains the created instance, if type instantiation succeeded; otherwise, the default value for <typeparamref name="TArray" />.

Returns

bool true if the type was instantiated; otherwise, false.

Description

Tries to create a new instance of an array with the given count.


Did you find this page useful? Please give it a rating: