Example #1
0
 public NamespaceModel ToModel()
 {
     NamespaceModel namespaceModel = new NamespaceModel();
     namespaceModel.NamespaceName = NamespaceName;
     namespaceModel.Types = Types.Select(model => model.ToModel());
     return namespaceModel;
 }
Example #2
0
 public NamespaceMetadata(NamespaceModel model)
 {
     NamespaceName = model.NamespaceName;
     Types = model.Types.Select(TypeMetadata.EmitTypeMetadata);
 }
 protected bool Equals(NamespaceModel other)
 {
     return(string.Equals(NamespaceName, other.NamespaceName) && Equals(Types, other.Types));
 }