diff --git a/Assets/Mirror/Editor/Weaver/Extensions.cs b/Assets/Mirror/Editor/Weaver/Extensions.cs index 1f63283b2..13fb2a544 100644 --- a/Assets/Mirror/Editor/Weaver/Extensions.cs +++ b/Assets/Mirror/Editor/Weaver/Extensions.cs @@ -76,18 +76,14 @@ public static bool ImplementsInterface(this TypeDefinition td) return false; } - public static bool IsMultidimensionalArray(this TypeReference tr) - { - return tr is ArrayType arrayType && arrayType.Rank > 1; - } + public static bool IsMultidimensionalArray(this TypeReference tr) => + tr is ArrayType arrayType && arrayType.Rank > 1; // Does type use netId as backing field - public static bool IsNetworkIdentityField(this TypeReference tr) - { - return tr.Is() - || tr.Is() - || tr.IsDerivedFrom(); - } + public static bool IsNetworkIdentityField(this TypeReference tr) => + tr.Is() || + tr.Is() || + tr.IsDerivedFrom(); public static bool CanBeResolved(this TypeReference parent) {