From 0b64616aa71f34029a652b26326b9a4ed5c9837b Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sat, 6 Apr 2019 08:14:56 -0500 Subject: [PATCH] style: use explicit type --- Assets/Mirror/Editor/Weaver/Processors/SyncObjectProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Editor/Weaver/Processors/SyncObjectProcessor.cs b/Assets/Mirror/Editor/Weaver/Processors/SyncObjectProcessor.cs index bb2ad49eb..04a27cc27 100644 --- a/Assets/Mirror/Editor/Weaver/Processors/SyncObjectProcessor.cs +++ b/Assets/Mirror/Editor/Weaver/Processors/SyncObjectProcessor.cs @@ -45,7 +45,7 @@ public static void GenerateSerialization(TypeDefinition td, int genericArgument, static MethodReference GenerateSerialization(string methodName, TypeDefinition td, TypeReference itemType) { Weaver.DLog(td, " GenerateSerialization"); - foreach (var m in td.Methods) + foreach (MethodDefinition m in td.Methods) { if (m.Name == methodName) return m; @@ -88,7 +88,7 @@ static MethodReference GenerateSerialization(string methodName, TypeDefinition t static MethodReference GenerateDeserialization(string methodName, TypeDefinition td, TypeReference itemType) { Weaver.DLog(td, " GenerateDeserialization"); - foreach (var m in td.Methods) + foreach (MethodDefinition m in td.Methods) { if (m.Name == methodName) return m;