Пример #1
0
        /// <summary>
        /// Visit a <see cref="NRDelegate"/>.
        /// </summary>
        /// <param name="nrDelegate">The <see cref="NRDelegate"/> to visit.</param>
        public void Visit(NRDelegate nrDelegate)
        {
            if (!string.IsNullOrWhiteSpace(nrDelegate.DeclaringTypeFullName) && (currentType != null && nrDelegate.DeclaringTypeFullName != currentType.FullName || currentType == null))
            {
                // Do not output the delegate since it is nested and we are not inside the parent type.
                return;
            }

            VisitAttributes(nrDelegate);

            OutputLine(nrDelegate.Declaration() + ";");
            OutputEmptyLineAfterType();
        }