mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
fix: corrected IEquatable implementation check (#362)
This commit is contained in:
parent
bc2a68527f
commit
9cf1b60a06
@ -31,7 +31,7 @@ namespace UnityAtoms.Editor
|
|||||||
{
|
{
|
||||||
var type = Type.GetType($"{FullQualifiedName}");
|
var type = Type.GetType($"{FullQualifiedName}");
|
||||||
if (type == null) throw new TypeLoadException($"Type could not be found ({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('+', '.');
|
var baseTypeAccordingNested = type.FullName.Replace('+', '.');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user