Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
 /// <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;
 }
Beispiel #3
0
 /// <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;
 }