/// <summary> /// Binds the Pronoun to refer to the given Entity. /// </summary> /// <param name="target">The entity to which to bind.</param> public void BindAsReferringTo(IEntity target) { if (RefersTo == null) { RefersTo = new AggregateEntity(target); } else { RefersTo = new AggregateEntity(RefersTo, target); } EntityKind = RefersTo.EntityKind; }
/// <summary> /// Binds the RelativePronoun to refer to the given Entity. /// </summary> /// <param name="target">The entity to which to bind.</param> public void BindAsReferringTo(IEntity target) { if (RefersTo == null || !RefersTo.Any()) { RefersTo = new AggregateEntity(target); } else { RefersTo = new AggregateEntity(RefersTo.Append(target)); } EntityKind = RefersTo.EntityKind; }
/// <summary> /// Binds the PronounPhrase to refer to the given Entity. /// </summary> /// <param name="target">The entity to which to bind.</param> public void BindAsReferringTo(IEntity target) { if (refersTo == null) { refersTo = new AggregateEntity(new[] { target }); } else { refersTo = new AggregateEntity(refersTo.Append(target)); } EntityKind = refersTo.EntityKind; }