private void CloneProperties(object aClone) { Articy.Asylumjame.Templates.InventoryItemTemplate newClone = ((Articy.Asylumjame.Templates.InventoryItemTemplate)(aClone)); if ((Item_feature != null)) { newClone.Item_feature = ((Articy.Asylumjame.Features.Item_featureFeature)(Item_feature.CloneObject())); } }
public object CloneObject() { Articy.Asylumjame.Templates.InventoryItemTemplate clone = new Articy.Asylumjame.Templates.InventoryItemTemplate(); CloneProperties(clone); return(clone); }