public FdbDynamicSubspacePartition Using([NotNull] IFdbKeyEncoding encoding) { Contract.NotNull(encoding, nameof(encoding)); var encoder = encoding.GetDynamicEncoder(); return(UsingEncoder(encoder)); }
/// <summary>Returns the same view but using a different Type System</summary> /// <param name="encoding">Type System that will code keys in this new view</param> /// <returns>Review that will partition this subspace using a different Type System</returns> /// <remarks> /// This should only be used for one-off usages where creating a new subspace just to encode one key would be overkill. /// If you are calling this in a loop, consider creating a new subspace using that encoding. /// </remarks> public FdbDynamicSubspacePartition Using([NotNull] IFdbKeyEncoding encoding) { if (encoding == null) { throw new ArgumentNullException("encoding"); } var encoder = encoding.GetDynamicEncoder(); return(UsingEncoder(encoder)); }