I would like to declare in a parent abstract class something along the lines of:
public abstract void RefreshDisplay<TView>(Enum value);
Which would then be implemented in the child class like:
public override void RefreshDisplay<RxViewModel>(RxViews view)
Where RxViews is an enumeration and "view" a specific value from that enumeration.
The actual view and Enum from which it came will not be known until run-time.
Can this be done? I appreciate the help.
Edit: I may have asked this wrong. The TView is not an enumeration, but rather a view that inherits from ViewModelBase. (I don't see where this is a duplicate question?) Thanks.
Edit: I'm guessing this was fixed in net 4.5. Any ideas how to work around this in net 4.0?