Esempio n. 1
0
        public string ConvertType(Type source, ITypeAdjuster adjuster)
        {
            if (source.IsArray)
            {
                return(source.GetElementType() + "[]");
            }

            if (source.IsGenericType)
            {
                var genericTypeText = adjuster.ToTypescriptType(source.GenericTypeArguments.First());
                return(genericTypeText + "[]");
            }

            return("[]");
        }
Esempio n. 2
0
 public string ConvertType(Type source, ITypeAdjuster adjuster)
 {
     return(adjuster.ToTypescriptType(source.GetGenericArguments().First()));
 }