I'm having some issues figuring out why my code is behaving like it's taking a "snapshot" of an instance instead of directly referencing it.
So I created a custom attribute so that I could check a class for methods with it and add the methods to the list. I had to "register" my methods after creating the instance so that they could access the instance members, and so in the class constructor I added:
public UdpConnection() { MessageHandler.RegisterListeners(typeof(UdpConnection), this); }
public UdpConnection() { MessageHandler.RegisterListeners(typeof(UdpConnection), this); }