Skip to content

Commit 1d63695

Browse files
committed
Fix enumerating drivers
1 parent 90d4927 commit 1d63695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Terminal.Gui/Application/Application.Initialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ internal static void InternalInit (
193193
{
194194
foreach (Type? type in asm.GetTypes ())
195195
{
196-
if (type.IsSubclassOf (typeof (IConsoleDriver)) && !type.IsAbstract)
196+
if (typeof (IConsoleDriver).IsAssignableFrom (type) && !type.IsAbstract && type.IsClass)
197197
{
198198
driverTypes.Add (type);
199199
}

0 commit comments

Comments
 (0)