I'm using Action for the retry action method called later in another module. Signature of the method using this Action is following
void ShowWarningMessageDialog<T>(string infoMessage, Action<T> retryAction, T parameter);
In some cases I need send retry method without parameter and of course it is not possible. I tried some ugly solution like this (parameter is only fake and is not used in method)
public void Authorize(object parameter = null)
Another option is to define two methods like following, but I don't like this too
void ShowWarningMessageDialog<T>(string infoMessage, Action<T> retryAction, T parameter); void ShowWarningMessageDialog(string infoMessage, Action retryAction);
Do you have some pattern or advice how to deal with it?