In C# is there a way to make something similar to a struct that is only created when new instances of an object are created? Here is an example. I want people to be able to assign events, the problem is that there are a lot of events to assign, and often they have similar functionality, just for a different object. For example, a left button down event, right button down event, etc. etc. I thought I could organize all these with structs but, I ran into a snag when I found that structs where considered "static" and not able to access non-static members. Is there any sort of structure that would let me do this in C#.
(The end result should let me make a new object, and assign to this objects event through these structures)
MouseObject mouse = new MouseObject();
mouse.Left.PressedEvent += somemethod();
In this example Left cannot be a struct since it is used in a non-static instance.