Update
This commit is contained in:
parent
fc0a11fd65
commit
ddc6db59a1
@ -85,14 +85,14 @@ namespace SkinHide.Utils
|
||||
|
||||
Type parameterType = parameterTypes[i];
|
||||
|
||||
bool isvaluetype = parameterType.IsValueType;
|
||||
bool isValueType = parameterType.IsValueType;
|
||||
|
||||
if (!isvaluetype)
|
||||
if (!isValueType)
|
||||
{
|
||||
ilGen.Emit(OpCodes.Castclass, parameterType);
|
||||
}
|
||||
//DelegateparameterTypes i == parameterTypes i
|
||||
else if (delegateParameterTypes[i] == typeof(object) && isvaluetype)
|
||||
else if (delegateParameterTypes[i] == typeof(object) && isValueType)
|
||||
{
|
||||
ilGen.Emit(OpCodes.Unbox_Any, parameterType);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user