public override iCalObject Copy(iCalObject parent) { iCalDataType icdt = (iCalDataType)Activator.CreateInstance(GetType()); icdt.CopyFrom(this); icdt.Parent = parent; return(icdt); }
public override iCalObject Copy(iCalObject parent) { iCalDataType icdt = (iCalDataType)Activator.CreateInstance(GetType()); icdt.CopyFrom(this); // Add parameters foreach (Parameter p in Parameters) { p.Copy(icdt); } icdt.Parent = parent; return(icdt); }
public override iCalObject Copy(iCalObject parent) { iCalDataType icdt = (iCalDataType)Activator.CreateInstance(GetType()); icdt.CopyFrom(this); // Add parameters foreach (DictionaryEntry de in Parameters) { ((Parameter)(de.Value)).Copy(icdt); } icdt.Parent = parent; return(icdt); }