/// <summary> /// Embed the specified person into this one. /// </summary> /// <param name="person">The person to embed.</param> public void Embed(Person person) { this._private = this._private == null ? person._private : this._private; this._living = this._living == null ? person._living : this._living; this._principal = this._principal == null ? person._principal : this._principal; this._gender = this._gender == null ? person._gender : this._gender; if (this._displayExtension != null && person._displayExtension != null) { this._displayExtension.Embed(person._displayExtension); } else if (person._displayExtension != null) { this._displayExtension = person._displayExtension; } if (person._names != null) { this._names = this._names == null ? new List <Name>() : this._names; this._names.AddRange(person._names); } if (person._facts != null) { this._facts = this._facts == null ? new List <Fact>() : this._facts; this._facts.AddRange(person._facts); } if (person._fields != null) { this._fields = this._fields == null ? new List <Field>() : this._fields; this._fields.AddRange(person._fields); } base.Embed(person); }
/// <summary> /// Embed the specified person into this one. /// </summary> /// <param name="person">The person to embed.</param> public void Embed(Person person) { this._private = this._private == null ? person._private : this._private; this._living = this._living == null ? person._living : this._living; this._principal = this._principal == null ? person._principal : this._principal; this._gender = this._gender == null ? person._gender : this._gender; if (this._displayExtension != null && person._displayExtension != null) { this._displayExtension.Embed(person._displayExtension); } else if (person._displayExtension != null) { this._displayExtension = person._displayExtension; } if (person._names != null) { this._names = this._names == null ? new List<Name>() : this._names; this._names.AddRange(person._names); } if (person._facts != null) { this._facts = this._facts == null ? new List<Fact>() : this._facts; this._facts.AddRange(person._facts); } if (person._fields != null) { this._fields = this._fields == null ? new List<Field>() : this._fields; this._fields.AddRange(person._fields); } base.Embed(person); }