fix some register issue
This commit is contained in:
@ -339,7 +339,7 @@ namespace ShellExtensions
|
||||
private static void ThrowIfNotValid(Type type)
|
||||
{
|
||||
var interfaces = type.GetInterfaces();
|
||||
if (!interfaces.Any(x => x is IPreviewFromStream || x is IPreviewFromFile))
|
||||
if (!interfaces.Any(x => x == typeof(IPreviewFromStream) || x == typeof(IPreviewFromFile)))
|
||||
{
|
||||
throw new NotImplementedException(
|
||||
string.Format(System.Globalization.CultureInfo.InvariantCulture,
|
||||
|
@ -1,4 +1,4 @@
|
||||
#if PREVIEW_HANDLER
|
||||
#if PREVIEW_HANDLER_WINFORM
|
||||
using ShellExtensions.Interop;
|
||||
using ShellExtensions.Interop.Common;
|
||||
using ShellExtensions.Resources;
|
||||
|
Reference in New Issue
Block a user