style: use explicit type

This commit is contained in:
Paul Pacheco 2019-04-06 08:14:56 -05:00
parent 12aa61a00d
commit 0b64616aa7

View File

@ -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;