/// <summary>
 /// Gets the specific instance of a Triple in the collection.
 /// </summary>
 /// <param name="t">Triple.</param>
 /// <returns></returns>
 public override Triple this[Triple t]
 {
     get
     {
         if (_triples.TryGetKey(t, out Triple actual))
         {
             return(actual);
         }
         throw new KeyNotFoundException("Given triple does not exist in this collection");
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the given Triple.
 /// </summary>
 /// <param name="t">Triple to retrieve.</param>
 /// <returns></returns>
 /// <exception cref="KeyNotFoundException">Thrown if the given Triple does not exist in the Triple Collection.</exception>
 public override Triple this[Triple t]
 {
     get
     {
         Triple actual;
         if (_triples.TryGetKey(t, out actual))
         {
             return(actual);
         }
         else
         {
             throw new KeyNotFoundException("The given Triple does not exist in the Triple Collection");
         }
     }
 }