Exemplo n.º 1
0
 protected override string MakeArrayType(ArrayTypeSlim type, string elementType, int?rank)
 {
     return(string.Format(CultureInfo.InvariantCulture, "{0}[{1}]", elementType, new string(',', (rank ?? 1) - 1)));
 }
Exemplo n.º 2
0
        /// <summary>
        /// Visits an array type.
        /// </summary>
        /// <param name="type">Type to visit.</param>
        /// <returns>Result of the visit.</returns>
        protected virtual TypeSlim VisitArray(ArrayTypeSlim type)
        {
            var elementType = Visit(type.ElementType);

            return(type.Update(elementType));
        }