public bool TryGet <T, U>(out T t, out U u) { LBEventTwoArg <T, U> arg = this as LBEventTwoArg <T, U>; arg.Get(out t, out u); return(true); }
public void SendEvent <T, U>(int eventId, T arg1, U arg2) { //临时闯将将来可以换成对象池 LBEventTwoArg <T, U> eventArg = new LBEventTwoArg <T, U>(); eventArg.Set(arg1, arg2); TiggerEvent(eventId, eventArg); //如果用对象池,在这里就可以回收 }