public object Clone()
        {
            ProvisioningPlan result = new ProvisioningPlan((string)this.Type.Clone());

            foreach (PlanAction item in this.PlanActions)
            {
                result.PlanActions.Add((PlanAction)item.Clone());
            }
            result.SuppressXmlPreparation();
            return(result);
        }
Ejemplo n.º 2
0
        public ProvisioningPlan DuplicateProvisioningPlan(string pType, ProvisioningPlan pProvisioningPlan)
        {
            if (String.IsNullOrWhiteSpace(pType) || pProvisioningPlan == null)
            {
                return(null);
            }

            ProvisioningPlan result = (ProvisioningPlan)pProvisioningPlan.Clone();

            result.Type = pType;
            this.ProvisioningPlans.Add(result);
            return(result);
        }