partial void CopyExtraPropertiesToClone(ExternalSystemType clone, bool includeLocalProperties);
public ExternalSystemType Clone(bool includeLocalProperties) { var c = new ExternalSystemType { Id = Id, Name = Name, Categories = Categories.ToList(), }; CopyExtraPropertiesToClone(c, includeLocalProperties); return c; }