Mono.Types.KindToType C# (CSharp) Method

KindToType() public method

public KindToType ( Kind kind ) : Type
kind Kind
return System.Type
		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));
		}