partial void CopyExtraPropertiesToClone(IndexMetadata clone, bool includeLocalProperties);
public IndexMetadata Clone(bool includeLocalProperties) { var c = new IndexMetadata { IndexName = IndexName, IsPresentable = IsPresentable, SupportedTypes = SupportedTypes.ToList(), }; CopyExtraPropertiesToClone(c, includeLocalProperties); return c; }