/// <summary> /// Adds the specified <see cref="Alias"/> to this instance. /// </summary> /// <param name="alias">The <c>Alias</c> to add to this instance.</param> /// <exception cref="System.ArgumentNullException">alias is null.</exception> /// <exception cref="System.InvalidOperationException"> /// alias belongs to another <see cref="Element"/>. /// </exception> public void AddAlias(Alias alias) { this.AddChild(alias); }
/// <summary> /// Adds the specified <see cref="Alias"/> to this instance. /// </summary> /// <param name="alias">The <c>Alias</c> to add to this instance.</param> /// <exception cref="System.ArgumentNullException">alias is null.</exception> /// <exception cref="System.InvalidOperationException"> /// alias belongs to another <see cref="Element"/>. /// </exception> public void AddAlias(Alias alias) { this.TryAddChild(alias); }