public static Type _GetTypeFromTypeFunc(JsTypeFunction typeFunction) { if (typeFunction.member("$CreateType") == null) return null; if (typeFunction.Type == null) typeFunction.CreateType(); return typeFunction.Type; }