Exemplo n.º 1
0
        public RichTextBlock GetDescription()
        {
            // This would be so much easier if ReSharper better supported IWrappedLookupItem
            var descriptionProvidingLookupItem = Item as IDescriptionProvidingLookupItem;

            if (descriptionProvidingLookupItem != null)
            {
                return(descriptionProvidingLookupItem.GetDescription());
            }

            return(LookupUtil.GetDescriptionForDeclaredElementLookupItem(Item as IDeclaredElementLookupItem));
        }