This version of Unity is unsupported.

TypeTraits.IsContainer

Declaration

public static bool IsContainer(Type type);

Parameters

type The type to test.

Returns

bool <see lanword="true" /> if the given type is a container type; <see lanword="false" /> otherwise.

Description

Returns <see lanword="true" /> if the given type can be treated as a container. i.e. not primitive, pointer, enum or string.