Example #1
0
 /// <summary>Tests whether the specified <paramref name="key"/> starts with this Subspace's prefix, indicating that the Subspace logically contains <paramref name="key"/>.</summary>
 /// <param name="subspace"/>
 /// <param name="key">The key to be tested</param>
 /// <exception cref="System.ArgumentNullException">If <paramref name="key"/> is null</exception>
 public static bool Contains <TKey>([NotNull] this IFdbSubspace subspace, [NotNull] TKey key)
     where TKey : IFdbKey
 {
     if (subspace == null)
     {
         throw new ArgumentNullException("subspace");
     }
     if (key == null)
     {
         throw new ArgumentNullException("key");
     }
     return(subspace.Contains(key.ToFoundationDbKey()));
 }