public static void AddConvertFromBytes <TTo>(this ConverterStore store, Func <LightningDatabase, byte[], TTo> convert) { var converter = new ConvertFromBytesInstance <TTo>(convert); store.AddConvertFromBytes(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); }