Exemplo n.º 1
0
        /// <summary>
        ///     Constructs the name of the collection type
        /// </summary>
        /// <param name="typeUsage"> The typeusage for the element type that this collection type refers to </param>
        /// <returns> The identity of the resulting collection type </returns>
        private static string GetIdentity(TypeUsage typeUsage)
        {
            var builder = new StringBuilder(50);

            builder.Append("collection[");
            typeUsage.BuildIdentity(builder);
            builder.Append("]");
            return(builder.ToString());
        }