public static bool IsUnmanaged ();
public static bool IsUnmanaged (Type type);

Parameters

typeThe System.Type of a struct.

Returns

bool True if struct is unmanaged, otherwise false.

Description

Returns whether the struct or type is unmanaged. An unmanaged type contains no managed fields, and can be freely copied in memory.