public Kind TypeToKind (Type type) { ManagedType mt = Find (type); return mt == null ? Kind.INVALID : mt.native_handle; }