Closed winxalex closed 7 years ago
Hi. Reproduced.
using System.Reflection;
namespace ws.winx.unity.events {
public class InvokableCall<T> {
public InvokableCall(MethodInfo methodInfo) {
}
public virtual void Invoke(object[] args) {
}
}
public class CachedInvokableCall<T> : InvokableCall<T> {
private readonly object[] m_Arg1 = new object[1];
public CachedInvokableCall(MethodInfo methodInfo, T argument) : base(methodInfo) {
this.m_Arg1[0] = argument;
}
public override void Invoke(object[] args) {
base.Invoke(this.m_Arg1);
}
}
}
Problem with this
Thanks