mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
fix: corrected IEquatable implementation check
This commit is contained in:
parent
a41a7f4abe
commit
4f597354e7
@ -31,7 +31,7 @@ namespace UnityAtoms.Editor
|
||||
{
|
||||
var type = Type.GetType($"{FullQualifiedName}");
|
||||
if (type == null) throw new TypeLoadException($"Type could not be found ({FullQualifiedName})");
|
||||
var isValueTypeEquatable = type.GetInterfaces().Contains(typeof(IEquatable<>));
|
||||
var isValueTypeEquatable = typeof(IEquatable<>).MakeGenericType(type).IsAssignableFrom(type);
|
||||
|
||||
var baseTypeAccordingNested = type.FullName.Replace('+', '.');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user