I have a form, and I need to save the actions made on the control's form has that. For this I have something like this:
[NonSerialized()] public EventInfo evento;
public TimeSpan timeToWait;
[NonSerialized()] public Control sender;
public EventArgs eventArgs;
public Type typeOfControl;
public Type typeOfEventArgs;
I need to serialize, but can not serialize the EventArgs, because events can be keyboard mouse, this is all kind of events that can occur on the form.
The purpose of this, and make a recorder, which records all actions taken on the form.