//can be made public if LMDB provider is to be used by Generic types (non-native) types
 //currently we are only giving integerbased keys and byte[] so the methods are not in use.
 private void RegisterCoverterToBytes <T>(IConvertToBytes <T> converter)
 {
     _environment.ConverterStore.AddConvertToBytes(converter);
 }
Esempio n. 2
0
 /// <summary>
 /// Register a converter into bytes.
 /// </summary>
 /// <typeparam name="TConvertFrom">Converter's source convertion type</typeparam>
 /// <param name="converter">A converter</param>
 public void AddConvertToBytes <TConvertFrom>(IConvertToBytes <TConvertFrom> converter)
 {
     _convertToBytes.Add(converter.ConvertFromType, converter);
 }