public static void AddConvertToBytes <TFrom>(this ConverterStore store, Func <LightningDatabase, TFrom, byte[]> convert) { var converter = new ConvertToBytesInstance <TFrom>(convert); store.AddConvertToBytes(converter); }
private void convertFromBytesWithCorrectSize <TTo>(ConverterStore store, Func <LightningDatabase, byte[], TTo> convert, int?size = null) where TTo : struct { var func = convert.EnsureCorrectSize(size); store.AddConvertFromBytes(func); }