diff --git a/src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs b/src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs index 20b8b286..cf0477c0 100644 --- a/src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs +++ b/src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs @@ -21,15 +21,15 @@ public abstract class BlockFilter : ReadOnlyStream private static readonly Dictionary> FilterMap = new Dictionary< FilterTypes, - Type + Func > { - { FilterTypes.ARCH_x86_FILTER, () => new X86Filter() }, - { FilterTypes.ARCH_PowerPC_FILTER, () => new PowerPCFilter() }, - { FilterTypes.ARCH_IA64_FILTER, () => new IA64Filter() }, - { FilterTypes.ARCH_ARM_FILTER, () => new ArmFilter() }, - { FilterTypes.ARCH_ARMTHUMB_FILTER, () => new ArmThumbFilter() }, - { FilterTypes.ARCH_SPARC_FILTER, () => new SparcFilter() }, + { FilterTypes.ARCH_x86_FILTER, (Func)(() => new X86Filter()) }, + { FilterTypes.ARCH_PowerPC_FILTER, (Func)(() => new PowerPCFilter()) }, + { FilterTypes.ARCH_IA64_FILTER, (Func)(() => new IA64Filter()) }, + { FilterTypes.ARCH_ARM_FILTER, (Func)(() => new ArmFilter()) }, + { FilterTypes.ARCH_ARMTHUMB_FILTER, (Func)(() => new ArmThumbFilter()) }, + { FilterTypes.ARCH_SPARC_FILTER, (Func)(() => new SparcFilter()) }, { FilterTypes.LZMA2, () => new Lzma2Filter() } };