コード例 #1
0
            public string ConvertToString(BaijiType type)
            {
                var    listType   = type as ListType;
                string actualType = typeToJavaConverter.ConvertToString(listType.Type);

                return("List<" + actualType + ">");
            }
コード例 #2
0
            public string ConvertToString(BaijiType type)
            {
                var mapType = type as MapType;

                string actualKeyType   = typeToJavaConverter.ConvertToString(mapType.KeyType);
                string actualValueType = typeToJavaConverter.ConvertToString(mapType.ValueType);

                return(string.Format("Map<{0}, {1}>", actualKeyType, actualValueType));
            }