Beispiel #1
0
 /// <summary>
 /// Return a value indicating if the Verbal has any direct objects bound to it which match the given predicate function.
 /// </summary>
 /// <returns><c>true</c> if the Verbal has any direct objects bound to it which match the given predicate function; otherwise, <c>false</c>.</returns>
 public static bool HasDirectObject(this IDirectObjectTaker verbal, Func <IEntity, bool> predicate) => AnyOrAnyReferredTo(verbal.DirectObjects, predicate);
Beispiel #2
0
 /// <summary>
 /// Return a value indicating if the Verbal has any direct objects bound to it.
 /// </summary>
 /// <param name="verbal">The verbal to test.</param>
 /// <returns><c>true</c> if the Verbal has any direct objects bound to it; otherwise, <c>false</c>.</returns>
 public static bool HasDirectObject(this IDirectObjectTaker verbal) => verbal.DirectObjects.Any();