//InputController.Declare += (commandId, args) => { RpcId(1, Enum.GetName(commandId.GetType(), commandId), args); }; public void Declare(CommandId commandId, params object[] args) { RpcId(1, Enum.GetName(commandId.GetType(), commandId), args); }