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