public void Visit(Header header)
 {
     foreach (string include in header.Includes)
     {
         sb.Append("Include : ").AppendLine(include);
     }
     if (!string.IsNullOrEmpty(header.DefaultNamespace))
     {
         sb.Append("Default namespace : ").AppendLine(header.DefaultNamespace);
     }
     foreach (string nsScope in header.Namespaces.Keys)
     {
         sb.Append("Namespace ").Append(nsScope).Append(" ").AppendLine(header.Namespaces[nsScope]);
     }
 }
示例#2
0
 public void Visit(Header header)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public Document(Header header, List<Definition> definitions)
 {
     //Header = header;
     Header = Enforce.IsNotNull<Header>(header, "header");
     Definitions = Enforce.IsNotNull<List<Definition>>(definitions, "definitions");
 }