/// <summary>Adds a child code group to the current code group.</summary>
/// <param name="group">The code group to be added as a child. This new child code group is added to the end of the list. </param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="group" /> parameter is null. </exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="group" /> parameter is not a valid code group. </exception>
public void AddChild(CodeGroup group)
{
if (group == null)
{
throw new ArgumentNullException("group");
}
this.m_children.Add(group.Copy());
}