Example #1
0
        /// <summary>
        /// Construct a new TypeParameterApiView instance, represented by the provided symbol.
        /// </summary>
        /// <param name="symbol">The symbol representing the type parameter.</param>
        public TypeParameterApiView(ITypeParameterSymbol symbol)
        {
            this.Name = symbol.ToString();

            List <string> attributes = new List <string>();

            foreach (AttributeData attribute in symbol.GetAttributes())
            {
                attributes.Add(attribute.ToString());
            }
            this.Attributes = attributes.ToArray();
        }