public VO_LineChoices Clone() { VO_LineChoices NewLineChoice = (VO_LineChoices)this.MemberwiseClone(); NewLineChoice.SubLines = new List <VO_Line>(); foreach (VO_Line CurrentLine in this.SubLines) { IScriptable ScriptLine = CurrentLine as IScriptable; IScriptable NewScriptLine = ScriptLine.Clone(); NewLineChoice.SubLines.Add(NewScriptLine as VO_Line); } return(NewLineChoice); }
public IScriptable Clone() { IScriptable NewScript = (IScriptable)this.MemberwiseClone(); VO_Script_ChoiceMessage CurrentObject = NewScript as VO_Script_ChoiceMessage; CurrentObject.Choices = new List <VO_LineChoices>(); foreach (VO_LineChoices CurrentLineChoice in this.Choices) { VO_LineChoices NewLineChoice = CurrentLineChoice.Clone(); CurrentObject.Choices.Add(NewLineChoice); } return(NewScript); }