Debian Codegraph @

external/api-doc-tools/mdoc/Mono.Documentation/Framework/FrameworkNamespaceModel.cs

raw
1 using System.Collections.Generic;
2 using System.Linq;
3 using System.Xml.Linq;
4
5 namespace Mono.Documentation.Framework
6 {
7 public class FrameworkNamespaceModel
8 {
9 public string Name { get; }
10 public List<FrameworkTypeModel> Types { get; } = new List<FrameworkTypeModel>();
11
12 public FrameworkNamespaceModel(XNode node)
13 {
14 var element = node as XElement;
15 Name = element.Attributes(XName.Get("Name")).First().Value;
16 var children = element.Elements();
17 foreach (XElement rawType in children)
18 {
19 Types.Add(new FrameworkTypeModel(rawType));
20 }
21 }
22 }
23 }