Beispiel #1
0
 public static NamespaceBase NamespaceBase(NamespaceMetadata namespaceModel)
 {
     return(new NamespaceBase()
     {
         Name = namespaceModel.Name,
         Types = namespaceModel.Types?.Select(TypeBase)
     });
 }
 public AssemblyMetadata(BaseAssemblyMetadata assemblyMetadata)
 {
     m_Name = assemblyMetadata.AssemblyName;
     if (assemblyMetadata.Namespaces != null)
     {
         List <NamespaceMetadata> namespaces = new List <NamespaceMetadata>();
         foreach (BaseNamespaceMetadata namespac in assemblyMetadata.Namespaces)
         {
             NamespaceMetadata namespaceMetadata = new NamespaceMetadata(namespac);
             namespaces.Add(namespaceMetadata);
         }
         m_Namespaces = namespaces;
     }
 }