mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
style: use explicit type
This commit is contained in:
parent
12aa61a00d
commit
0b64616aa7
@ -45,7 +45,7 @@ public static void GenerateSerialization(TypeDefinition td, int genericArgument,
|
|||||||
static MethodReference GenerateSerialization(string methodName, TypeDefinition td, TypeReference itemType)
|
static MethodReference GenerateSerialization(string methodName, TypeDefinition td, TypeReference itemType)
|
||||||
{
|
{
|
||||||
Weaver.DLog(td, " GenerateSerialization");
|
Weaver.DLog(td, " GenerateSerialization");
|
||||||
foreach (var m in td.Methods)
|
foreach (MethodDefinition m in td.Methods)
|
||||||
{
|
{
|
||||||
if (m.Name == methodName)
|
if (m.Name == methodName)
|
||||||
return m;
|
return m;
|
||||||
@ -88,7 +88,7 @@ static MethodReference GenerateSerialization(string methodName, TypeDefinition t
|
|||||||
static MethodReference GenerateDeserialization(string methodName, TypeDefinition td, TypeReference itemType)
|
static MethodReference GenerateDeserialization(string methodName, TypeDefinition td, TypeReference itemType)
|
||||||
{
|
{
|
||||||
Weaver.DLog(td, " GenerateDeserialization");
|
Weaver.DLog(td, " GenerateDeserialization");
|
||||||
foreach (var m in td.Methods)
|
foreach (MethodDefinition m in td.Methods)
|
||||||
{
|
{
|
||||||
if (m.Name == methodName)
|
if (m.Name == methodName)
|
||||||
return m;
|
return m;
|
||||||
|
Loading…
Reference in New Issue
Block a user