Skip to content

Commit

Permalink
comment by Søren
Browse files Browse the repository at this point in the history
Co-authored-by: Søren Ernst <[email protected]>
  • Loading branch information
KSGRelewise and soe-relewise authored Aug 8, 2024
1 parent a3747f1 commit 5405f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Generator/Extensions/TypeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

public static class TypeExtensions
{
public static bool IsConcreteTypeOfSomethingPolymorphic(this Type type) => ((type.BaseType != typeof(object) && type.BaseType is not null) || type.GetInterfaces().Length > 0) && !type.IsAbstract;
public static bool IsConcreteTypeOfSomethingPolymorphic(this Type type) => ((type.BaseType is not null && type.BaseType != typeof(object)) || type.GetInterfaces().Length > 0) && !type.IsAbstract;
public static bool IsMaybeBaseClassOfSomethingPolymorphic(this Type type) => type.IsAbstract || type.IsInterface;
}

0 comments on commit 5405f8a

Please sign in to comment.