Exemple #1
0
        public static string GetGeneratedNativeType(Type type)
        {
            if (type == null)
            {
                return(string.Empty);
            }

            if (Plugin.IsArrayType(type))
            {
                Type itemType = type.GetGenericArguments()[0];
                return(string.Format("List<{0}>", CsExporter.GetGeneratedNativeType(itemType)));
            }

            return(GetGeneratedNativeType(type.Name));
        }
Exemple #2
0
        public static string GetPropertyNativeType(Behaviac.Design.PropertyDef property, MethodDef.Param arrayIndexElement)
        {
            string nativeType = CsExporter.GetGeneratedNativeType(property.NativeType);

            return(nativeType);
        }