10 fewer MSIL bytes for us

This commit is contained in:
LDj3SNuD 2019-09-12 00:54:12 +02:00 committed by GitHub
commit 21d34c1e6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,8 +16,8 @@ namespace ARMeilleure.Translation
{ {
_dlg = dlg; _dlg = dlg;
FuncPtr = Marshal.GetFunctionPointerForDelegate<Delegate>(_dlg); FuncPtr = Marshal.GetFunctionPointerForDelegate<Delegate>(dlg);
RetType = GetOperandType(_dlg.Method.ReturnType); RetType = GetOperandType(dlg.Method.ReturnType);
} }
private static OperandType GetOperandType(Type type) private static OperandType GetOperandType(Type type)
@ -55,4 +55,4 @@ namespace ARMeilleure.Translation
} }
} }
} }
} }