This commit is contained in:
vis2k 2021-08-17 17:14:27 +08:00
parent 9a07feda28
commit f64b808aed

View File

@ -6,14 +6,10 @@ namespace Mirror.Weaver
// Compares TypeReference using FullName
public class TypeReferenceComparer : IEqualityComparer<TypeReference>
{
public bool Equals(TypeReference x, TypeReference y)
{
return x.FullName == y.FullName;
}
public bool Equals(TypeReference x, TypeReference y) =>
x.FullName == y.FullName;
public int GetHashCode(TypeReference obj)
{
return obj.FullName.GetHashCode();
}
public int GetHashCode(TypeReference obj) =>
obj.FullName.GetHashCode();
}
}