public Type KindToType (Kind kind)
{
ManagedType result;
if (types_kind.TryGetValue (kind, out result))
return result.type;
foreach (ManagedType type in types.Values) {
if (type.native_handle == kind) {
types_kind [kind] = type;
return type.type;
}
}
throw new ExecutionEngineException (string.Format ("KindToType returning null for Kind {0}", kind));
}