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 // Compares TypeReference using FullName
public class TypeReferenceComparer : IEqualityComparer<TypeReference> public class TypeReferenceComparer : IEqualityComparer<TypeReference>
{ {
public bool Equals(TypeReference x, TypeReference y) public bool Equals(TypeReference x, TypeReference y) =>
{ x.FullName == y.FullName;
return x.FullName == y.FullName;
}
public int GetHashCode(TypeReference obj) public int GetHashCode(TypeReference obj) =>
{ obj.FullName.GetHashCode();
return obj.FullName.GetHashCode();
}
} }
} }