protected override void BeginVisit(IEnumerationPair p)
 {
     if (p is INodeGenSettings)
     {
         _act(p as INodeGenSettings);
     }
 }
Exemplo n.º 2
0
        public static string Comment(IEnumerationPair t, string indent = "")
        {
            var sb = new StringBuilder();

            sb.Append(indent);
            sb.Append(commentBegSummary);
            sb.AppendLine();

            sb.Append(indent);
            sb.Append(comment);
            sb.Append("UI name: ");
            sb.Append(t.NameUi);
            sb.AppendLine();

            if (!string.IsNullOrWhiteSpace(t.Description))
            {
                sb.Append(indent);
                sb.Append(comment);
                //sb.Append("Description: ");
                sb.Append(t.Description);
                sb.AppendLine();
            }

            sb.Append(indent);
            sb.Append(commentEndSummary);
            return(sb.ToString());
        }
Exemplo n.º 3
0
 protected virtual void Visit(IEnumerationPair p)
 {
 }