Beispiel #1
0
 public static NamespaceBase NamespaceBase(NamespaceSerializationModel namespaceSerializationModel)
 {
     return(new NamespaceBase()
     {
         Name = namespaceSerializationModel.Name,
         Types = namespaceSerializationModel.Types?.Select(GetOrAdd).ToList()
     });
 }
Beispiel #2
0
 private static NamespaceBase ToBase(NamespaceSerializationModel metadata)
 {
     return(new NamespaceBase()
     {
         name = metadata.Name,
         types = metadata.Types?.Select(ToBase)
     });
 }