Beispiel #1
0
 /// <seealso cref="ILocalGenerator"/>
 public bool CanExtend(ClassModel model)
 {
     return(model.IsPartial && model.HasAttribute(nameof(DataContractAttribute)));
 }
Beispiel #2
0
 private static CodeElementModel GetChild(ClassModel model, PropertyModel property)
 {
     return(model.References.FirstOrDefault(r => r.Name == property.ElementType));
 }