public void CloneAttributeArguments(CodeAttributeArgumentCollection source, CodeAttributeArgumentCollection dest) { dest.Clear(); foreach (CodeAttributeArgument arg in source) { dest.Add(CloneAttributeArgument(arg)); } }