public RTFAttributeList Clone() { var list = new RTFAttributeList(); foreach (RTFAttribute item in this) { var newItem = new RTFAttribute(); newItem.Name = item.Name; newItem.Value = item.Value; list.List.Add(newItem); } return(list); }
public RTFAttributeList Clone() { RTFAttributeList list = new RTFAttributeList(); foreach (RTFAttribute item in this) { RTFAttribute newItem = new RTFAttribute(); newItem.Name = item.Name; newItem.Value = item.Value; list.List.Add(newItem); } return list; }