mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
9a07feda28
commit
f64b808aed
@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user